ainojs-ajax:用于返回Promise的JSON请求的最小ajax库

时间:2021-05-03 18:25:18
【文件属性】:
文件名称:ainojs-ajax:用于返回Promise的JSON请求的最小ajax库
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-03 18:25:18
JavaScript 阿贾克斯 用于返回Promise的JSON请求的最小ajax库。 安装: 使用npm: npm install ainojs-ajax 在浏览器中: 在下载版本 包括已编译的文件: [removed][removed] 用法示例: Ajax.get('/').then(function(response) { console.log(response) }) Ajax.post('/', { foo: 'bar' }).then(function(response) { console.log(response) }) Ajax.jsonp('http://en.wikiquote.org/w/api.php', { action: 'opensearch', search
【文件预览】:
ainojs-ajax-master
----.travis.yml(37B)
----index.js(2KB)
----package.json(660B)
----test()
--------unit.js(1KB)
--------unit.html(630B)
----dist()
--------ajax.min.js(13KB)
----run-tests(128B)
----.gitignore(57B)
----README.md(1KB)

网友评论