【文件属性】:
文件名称:any-http-angular:用于 AngularJS 的 AnyHTTP 适配器
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-29 11:58:49
JavaScript
用于 AngularJS 的 AnyHTTP 适配器
用于框架的适配器。
用法
此适配器实现为能够与被安装的ES6模块并加载经由如下:
import 'any-http-angular' ;
import angular from 'angular' ;
var mod = angular . module ( 'example' , [ 'anyHttp' ] ) ;
mod . factory ( 'exampleFactory' , [ 'anyHttp' , function ( anyHttp ) {
anyHttp .
get ( 'https://example.com' ) .
then ( ( { body , headers } ) => {
console . log ( "body:" , body ) ;
conso
【文件预览】:
any-http-angular-master
----package.json(657B)
----src()
--------any-http-angular.js(2KB)
----.gitignore(27B)
----README.md(705B)
----.editorconfig(166B)