IE6 JS脚本错误

jS在IE6显示脚本错误,而在IE7,8,Firefox等中正确的一种可能性;

如果页面调用了一个函数,如<div onclick=’fun()’></div>

而fun()没有被定义,那么即使该函数没有被触发,在IE6中也会导致整个脚本无法正常运行,

在其他浏览器中则会忽略。

所以遇到类似错误可以检查一下页面中有没有调用没有定义的函数

This entry was posted in tip. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">