fb1e5db79f
Fix `options.params` to `options.data` according to the source code (https://github.com/liziqiang/simple-jsonp-promise/blob/master/src/index.js#L22) |
||
---|---|---|
build | ||
src | ||
.babelrc | ||
.gitignore | ||
LICENSE | ||
README.md | ||
package.json | ||
yarn.lock |
README.md
simple-jsonp-promise
Installation
yarn add simple-jsonp-promise
Example
import jsonp from 'simple-jsonp-promise'
let options = {
data: {
a : 1,
b : 2
},
jsonp : 'callback',
prefix : '__jp',
timeout : 15000
}
let response = await jsonp('https://localhost/api.jsonp' , options);