angular.js - angularjs中$http方法与$httpProvider是一个意思吗?
天蓬老师
天蓬老师 2017-05-15 17:03:46
0
2
509

angularjs中$http方法与$httpProvider是一个意思吗?
我看书时说用$http方法与服务器互交用的却是$httpProvider,这是一个概念吗?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
左手右手慢动作

Use $httpProvider to change the default behavior of the $http service.

$httpProvider is used to set the configuration of $http requests, such as disabling cache globally, adding headers, etc.

https://docs.angularjs.org/api/ng/provider/$httpProvider

淡淡烟草味

Configure $http, that is, you need to use $httpProvider in the config function

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!