
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@fekit/mc-jsonp
Advanced tools
一个轻量的JSONP接口请求插件,用法和属性名和jquery的ajax请求jsonp差不多。
https://fekit.asnowsoft.com/plugins/mc-jsonp
下载项目:
npm i @fekit/mc-jsonp
param {Object} 参数
param.url {String} 接口网址
param.data {Object} 接口请求参数
param.jsonpCallback {String} 接口回调函数名 name 固定的函数名 name{n}函数名后跟递增数字 name{t}函数名后跟时间戳 {N和T大小写均可}
param.timeout {Number} 接口请求超时时间
import mcJsonp from './mc-jsonp';
let myData = mcJsonp({
url: 'http://baike.baidu.com/api/openapi/BaikeLemmaCardApi',
jsonpCallback: 'JSONP{N}',
data: {
scope: '103',
format: 'json',
appid: '379020',
bk_key: bk_key,
bk_length: 100
}
});
myData.then(function(res){
console.log(res)
})
// 多个请求
let aaa = mcJsonp({
url: 'http://baike.baidu.com/api/openapi/BaikeLemmaCardApi',
jsonpCallback: 'JSONP{N}',
data: {
scope: '103',
format: 'json',
appid: '379020',
bk_key: '前端',
bk_length: 100
}
});
let bbb = mcJsonp({
url: 'http://baike.baidu.com/api/openapi/BaikeLemmaCardApi?scope=103&format=json&appid=379020&bk_length=100',
jsonpCallback: 'JSONP{N}',
data: {
bk_key: '开发'
}
});
Promise.all([aaa, bbb]).then(function ([aaa, bbb]) {
console.log(aaa, bbb);
});
v1.0.2 [Latest version]
1. 修复一些文档编写错识
v1.0.1
1. 修复一个无任何入参时拼接参数出错的BUG
v1.0.0
1. 核心功能完成。
如果您在使用中遇到问题,请通过以下方式联系我。
QQ: 860065202
EMAIL: xiaojunbo@126.com
FAQs
jsonp
The npm package @fekit/mc-jsonp receives a total of 1 weekly downloads. As such, @fekit/mc-jsonp popularity was classified as not popular.
We found that @fekit/mc-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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.