angular-httphook:轻量级的HTTP钩形

时间:2024-05-22 17:28:37
【文件属性】:

文件名称:angular-httphook:轻量级的HTTP钩形

文件大小:7KB

文件格式:ZIP

更新时间:2024-05-22 17:28:37

HTML

角http钩 轻量级的HTTP钩形 IDL void httphook( RegExp method, RegExp uri, optional function requestHandler, optional function responseHandler ); method是与RegExp的匹配器,仅匹配请求方法。 uri是RegExp的匹配器,仅挂钩请求uri是匹配的。 requestHandler是用于处理挂钩请求的回调函数。 responseHandler是用于处理挂钩响应的回调函数。 requestHandler和responseHandler是可选的。 演示版 < html ng-app =" test " > < script src =" bower_components/angular/angular.js " > </ script >


【文件预览】:
angular-httphook-master
----angular-httphook.js(4KB)
----tests()
--------index.html(228B)
--------test-formdata.html(635B)
--------test-match-request.html(842B)
--------test-all-methods.html(1KB)
--------test-basic.html(1KB)
--------.gitignore(17B)
--------bower.json(230B)
--------test-full-sections-get.html(1020B)
----.gitignore(6B)
----README.md(1KB)
----bower.json(214B)
----LICENSE.txt(64B)

网友评论