摘要: IE6和IE8对Javascript字符串操作的细微差别,今天谈一下在IE浏览器下返回执行错误的Javascript代码所在的问题。其中在IE浏览器下,如果你使用了try-catch,那么当出现异常的时候,IE浏览器会传递一个Error对象。<script> try{ sldfj }catch(e){ for(var p in e){ document.writeln(p + “=” + e[p]); } }</script>输出:name=TypeError message=’sldfj’ 未定义 number=-2146823279 description=’sld 阅读全文
posted @ 2012-06-13 17:25 MR.Punk 阅读(846) 评论(0) 推荐(0) 编辑