javaScript在IE和FireFox中的一点不同
var temp = new String("文档");alert(temp.length);IE显示点击OK后,无附加显示。FireFox显示点击OK后,显示再点击OK后,无附加显示。原因:ECMAScript标准关于Sting类的length属性的描述:The number of characters in the String value represented by this String
原创
2008-10-20 12:33:00 ·
361 阅读 ·
0 评论