growth-jsonp

1.0.2 • Public • Published

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) })

Readme

Keywords

none

Package Sidebar

Install

npm i growth-jsonp

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

2.23 kB

Total Files

4

Last publish

Collaborators

  • zhouyun