Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有没有像angularJS那样的全局请求拦截器? #23

Closed
codering opened this issue Jan 23, 2015 · 4 comments
Closed

有没有像angularJS那样的全局请求拦截器? #23

codering opened this issue Jan 23, 2015 · 4 comments

Comments

@codering
Copy link

如题

@RubyLouvre
Copy link
Owner

什么叫全局请求拦截器,没有用过,请说明

@codering
Copy link
Author

类似jquery ajax全局设置,我想对后端错误做统一处理。
angular里有个 $httpProvider.interceptors.

@dragonwong
Copy link
Contributor

@zbuddha 是类似 jq 的 jQuery.ajaxSetup() 么?现在 avalon 里面没有。

@dragonwong
Copy link
Contributor

现已加上全局事件函数,详情请参考文档 Global event functions 部分。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants