update jsonp docs
This commit is contained in:
parent
4e25e170e9
commit
cfe5e13667
1 changed files with 2 additions and 1 deletions
|
|
@ -26,10 +26,11 @@ m.jsonp({
|
|||
|
||||
### Signature
|
||||
|
||||
`promise = m.jsonp(options)`
|
||||
`promise = m.jsonp([url,] options)`
|
||||
|
||||
Argument | Type | Required | Description
|
||||
---------------------- | --------------------------------- | -------- | ---
|
||||
`url` | `String` | No | If present, it's equivalent to having the option `{url: url}`. Values passed to the `options` argument override options set via this shorthand.
|
||||
`options.url` | `String` | Yes | The URL to send the request to. The URL may be either absolute or relative, and it may contain [interpolations](#dynamic-urls).
|
||||
`options.data` | `any` | No | The data to be interpolated into the URL and serialized into the querystring.
|
||||
`options.type` | `any = Function(any)` | No | A constructor to be applied to each object in the response. Defaults to the [identity function](https://en.wikipedia.org/wiki/Identity_function).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue