Skip to content
New issue

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

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

Already on GitHub? # to your account

建议使用 unhandledrejection 来捕获未处理的 promise reject #39

Open
zzbo opened this issue Apr 3, 2018 · 1 comment
Open
Labels

Comments

@zzbo
Copy link

zzbo commented Apr 3, 2018

建议使用 unhandledrejection 来捕获未处理的 promise reject,从 chrome 49 开始已经支持,window.addEventListener('unhandledrejection', e => {console.log(e)});

@Derrys
Copy link

Derrys commented Aug 7, 2018

这个可以有,顺便想请问下目前支持捕获网络请求错误和资源加载这类错误吗?

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

No branches or pull requests

3 participants