'/some?data=1' appendData('/some?url', {'data': 1}); // > '/some?url&data=1'
Name | Type | Description |
---|---|---|
data [nullable] | object | Expects an object literal. |
Name | Type | Default | Description |
---|---|---|---|
X-Requested-With [optional] | string | "XMLHttpRequest" | |
Content-Type [optional] | string | "application/json" | Only on JSON requests. |
object
Name | Type | Default | Description |
---|---|---|---|
responseType [optional] | string | "json" | Only on JSON requests. |
object
{XMLHttpRequest}
Name | Type | Description |
---|---|---|
error [nullable] | Error | Bad status error or null . |
response | Any | Either #response or #responseText property. On JSON request, the property parsed as a JSON. |