net.js:浏览器的极简网络通信-源码

上传者: 42150360 | 上传时间: 2021-09-22 20:53:45 | 文件大小: 36KB | 文件类型: ZIP
网络js Net.js 是一个极简主义的浏览器网络通信库。 为什么? 在一个简洁的界面中简化通过 AJAX 获取远程 URL 以及与 JSON API 的对话,而不依赖于其他库。 用法 net.js 易于使用! 只需将其包含在您的页面中。 [removed][removed] 这使得全局“net”对象可用于您的脚本。 如果您更喜欢将 net.js 与 require.js 一起使用,只需将其添加为依赖项即可: define('mymodule', ['net'], function(net) { // Your code... }); 回调和承诺 Net.js 支持两种风格的请求:传统的回调和承诺。 示例:回调样式 net.ajax.get({ url: '/my-endpoint', success: functio

文件下载

资源详情

[{"title":"( 24 个子文件 36KB ) net.js:浏览器的极简网络通信-源码","children":[{"title":"net.js-master","children":[{"title":".gitignore <span style='color:#111;'> 23B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 979B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"net.js <span style='color:#111;'> 193B </span>","children":null,"spread":false},{"title":"promise.js <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"net","children":[{"title":"json.js <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"form.js <span style='color:#111;'> 745B </span>","children":null,"spread":false},{"title":"ajax.js <span style='color:#111;'> 4.11KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"build","children":[{"title":"license.frag <span style='color:#111;'> 160B </span>","children":null,"spread":false},{"title":"start.frag <span style='color:#111;'> 527B </span>","children":null,"spread":false},{"title":"end.frag <span style='color:#111;'> 262B </span>","children":null,"spread":false}],"spread":true},{"title":"Gruntfile.js <span style='color:#111;'> 3.10KB </span>","children":null,"spread":false},{"title":"dist","children":[{"title":"net.js <span style='color:#111;'> 6.62KB </span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 4.86KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"test.html <span style='color:#111;'> 517B </span>","children":null,"spread":false},{"title":"data","children":[{"title":"test.json <span style='color:#111;'> 19B </span>","children":null,"spread":false}],"spread":true},{"title":"helpers.js <span style='color:#111;'> 682B </span>","children":null,"spread":false},{"title":"net","children":[{"title":"json.js <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"form.js <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false},{"title":"ajax.js <span style='color:#111;'> 7.44KB </span>","children":null,"spread":false},{"title":"post.js <span style='color:#111;'> 78B </span>","children":null,"spread":false}],"spread":true},{"title":"lib","children":[{"title":"qunit","children":[{"title":"qunit.js <span style='color:#111;'> 57.10KB </span>","children":null,"spread":false},{"title":"qunit.css <span style='color:#111;'> 4.55KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"server.js <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明