discuss.js:一个轻量级的 JavaScript REST 库

时间:2021-07-12 19:43:40
【文件属性】:
文件名称:discuss.js:一个轻量级的 JavaScript REST 库
文件大小:14KB
文件格式:ZIP
更新时间:2021-07-12 19:43:40
JavaScript 讨论.js 浏览器中 JavaScript 的轻量级 REST 抽象库。 的替代品。 $ bower install discuss.js 用法 支持的 HTTP 方法:GET、PUT、POST、DELETE、HEAD var user = new Discuss("http://yourhost.com/api/user"); user.get("/all") .query({ location: "CA" }) .success(function(body, status, headers) { // Handle success }) .error(function(error, status, headers) { // Handle error }) .send(); user.post() .body({ username: "js
【文件预览】:
discuss.js-master
----.travis.yml(99B)
----package.json(876B)
----LICENCE(1KB)
----test()
--------utilitytests.js(3KB)
--------testrunner.html(769B)
--------integrationtests.js(9KB)
--------testapi.js(2KB)
----dist()
--------discuss.js(15KB)
--------discuss.min.js(4KB)
----Gruntfile.js(2KB)
----.gitignore(53B)
----README.md(3KB)
----.jshintrc(379B)
----bower.json(498B)

网友评论