mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 19:40:56 +08:00
docs($http) Clarify how to specify JSONP callback.
Make clear that it is the name of the callback that should be `JSON_CALLBACK`, instead of the current vague description. Closes #8269
This commit is contained in:
@@ -854,7 +854,7 @@ function $HttpProvider() {
|
||||
* Shortcut method to perform `JSONP` request.
|
||||
*
|
||||
* @param {string} url Relative or absolute URL specifying the destination of the request.
|
||||
* Should contain `JSON_CALLBACK` string.
|
||||
* The name of the callback should be the string `JSON_CALLBACK`.
|
||||
* @param {Object=} config Optional configuration object
|
||||
* @returns {HttpPromise} Future object
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user