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

script.onerror的支持 #12

Open
lonelyclick opened this issue Nov 3, 2014 · 1 comment
Open

script.onerror的支持 #12

lonelyclick opened this issue Nov 3, 2014 · 1 comment

Comments

@lonelyclick
Copy link

在IE6,7,8和opera中,script.onerror这个事件注册是不会触发的,这就导致如果调用loadScript传入onerror的时候在各浏览器下反应不一致,在上述浏览器中,只有在超时时才会触发,而在支持该事件的浏览器中,直接触发?

@zjcqoo
Copy link
Contributor

zjcqoo commented Nov 3, 2014

是的。低版本浏览器不支持加载失败事件,只能用超时解决

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

2 participants