首页 开发技术 其它     /    ajax-proxy:拦截es6代理重构XMLHTTPRequest的Ajax代理-源码

ajax-proxy:拦截es6代理重构XMLHTTPRequest的Ajax代理-源码

上传者: weixin_42138376 | 上传时间:2023/11/1 18:32:44 | 文件大小:22KB | 文件类型:ZIP
ajax-proxy:拦截es6代理重构XMLHTTPRequest的Ajax代理-源码
中文简体|ajax代理简介ajax-proxy是一个用ES6中代理特性实现的用于代理原生对象XMLHttpRequest的库,它可以使您从对XMLHttpRequest进行操作。
使用安装CDN约会<script>https://unpkg.com/@lazyduke/ajax-proxy/dist/index.min.js</script>NPM约会npminstall@lazyduke/ajax-proxy指南APIajax-proxy使用起来十分简单,只有两个方法proxyAjax和unProxyAjax,只要您对XMLHttpRequest有所了解,就能很快上手使用。
proxyAjax(proxyMap)proxyMap:代理对象,key为需要代理的属性或方法,value具体的函数普通属性:response,responseText,timeout......以上可以同过对读/写的操作进行代理,当代理写操作时,可以直接将值指定为true并配合代理方法,对一些只读属性如response进行修改。
注意:

文件下载

资源详情

[{"title":"(23个子文件22KB)ajax-proxy:拦截es6代理重构XMLHTTPRequest的Ajax代理-源码","children":[{"title":"ajax-proxy-master","children":[{"title":".babelrc <span style='color:#111;'>233B</span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'>2.52KB</span>","children":null,"spread":false},{"title":"test","children":[{"title":"global.css <span style='color:#111;'>293B</span>","children":null,"spread":false},{"title":"jquery","children":[{"title":"index.html <span style='color:#111;'>320B</span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'>6.29KB</span>","children":null,"spread":false}],"spread":true},{"title":"xmlhttprequest","children":[{"title":"index.html <span style='color:#111;'>336B</span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'>8.22KB</span>","children":null,"spread":false}],"spread":true},{"title":"index.html <span style='color:#111;'>518B</span>","children":null,"spread":false},{"title":"server.ts <span style='color:#111;'>1.87KB</span>","children":null,"spread":false},{"title":"webpack.config.ts <span style='color:#111;'>917B</span>","children":null,"spread":false},{"title":"axios","children":[{"title":"index.html <span style='color:#111;'>318B</span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'>5.40KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.en-US.md <span style='color:#111;'>5.00KB</span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'>1.04KB</span>","children":null,"spread":false},{"title":"src","children":[{"title":"index.ts <span style='color:#111;'>7.43KB</span>","children":null,"spread":false}],"spread":true},{"title":".eslintrc.js <span style='color:#111;'>629B</span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'>5.20KB</span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'>52B</span>","children":null,"spread":false},{"title":".prettierrc.js <span style='color:#111;'>80B</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>5.67KB</span>","children":null,"spread":false},{"title":".eslintignore <span style='color:#111;'>43B</span>","children":null,"spread":false},{"title":".editorconfig <span style='color:#111;'>147B</span>","children":null,"spread":false},{"title":"rollup.config.ts <span style='color:#111;'>1.38KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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