growth-jsonp
v1.0.2
Published
jsonp promise
Downloads
5
Readme
growth-jsonp
原生js实现的jsonp请求,支持promise。
使用方法
npm i growth-jsonp const jsonpPromise = require('growth-jsonp') or import jsonpPromise from 'growth-jsonp' jsonpPromise(url, params).then((res) => { console.log(res) }).catch((e) => { console.log(e) })