Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
jd-promise-jsonp
Advanced tools
将 jsonp 请求 promise 化
var jsonp = require('jd-promise-jsonp') // window['promise-jsonp']
jsonp({
url: '/jsonp', // 接口地址
callback: 'jsoncallback', // 服务端接收的 jsonp callback 参数名,默认是 jsoncallback
data: {
v: 1,
obj: {
key1: '1',
key2: '2'
} // 将调用 JSON.stringify 将 object 类型转换成 string
}
}).then(function(ret) {
console.log(ret)
}).catch(function(err) {
console.error(err)
})
FAQs
将 jsonp 请求 promise 化
The npm package jd-promise-jsonp receives a total of 2 weekly downloads. As such, jd-promise-jsonp popularity was classified as not popular.
We found that jd-promise-jsonp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.