如果在提供者$get
注入$http
并执行sam AJAX(用于配置),我确定在请求结束后是否将对此service
进行任何操作?
$http returns a promise. If you want to execute some code on receiving a response please put it inside the then method callback of said promise.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.