axios-jsonp
v1.0.4
Published
A jsonp adapter for axios
Downloads
57,810
Readme
A jsonp adapter for axios
support promise,support cancel,same as xhr
install
npm install axios-jsonp
usage
let axios = require('axios');
let jsonpAdapter = require('axios-jsonp');
axios({
url: '/jsonp',
adapter: jsonpAdapter,
callbackParamName: 'c' // optional, 'callback' by default
}).then((res) => {
});