把下面代码放到js代码的最前面才能捕获整个html的js错误:
Js代码
<script language=”javascript”>
window.onerror = function(){
return true;
}
</script>
直接添加在页面顶部,即可屏蔽js各种错误信息
把下面代码放到js代码的最前面才能捕获整个html的js错误:
Js代码
<script language=”javascript”>
window.onerror = function(){
return true;
}
</script>
直接添加在页面顶部,即可屏蔽js各种错误信息
Ab fab my golody man.
Now we know who the selsbine one is here. Great post!
I might be beating a dead horse, but thank you for ptsoing this!
Damn, I wish I could think of soemthnig smart like that!
Geez, that’s ubnlieevalbe. Kudos and such.
That’s a knowing answer to a difficult qseution
That’s a smart answer to a tricky qsuetion
Thanks for spending time on the computer (wirtnig) so others don’t have to.
You saved me a lot of haslse just now.
I’m impressed you sohlud think of something like that
Insgihts like this liven things up around here.
One or two to reemmebr, that is.
Thnkinig like that is really amazing
A simple and inetlligent point, well made. Thanks!
Ab fab my godoly man.
Wow, your post makes mine look feelbe. More power to you!
Your story was really infromtaive, thanks!
You get a lot of respect from me for writing these helpful airctles.
Walking in the presence of gintas here. Cool thinking all around!