6月 072013
 

1. IE8下(可能还有别的浏览器)的数组对象不支持indexOf(..)方法

2. IE8下(可能还有别的浏览器)的字符串的substr(..)方法不支持从结尾计算,如: “abcd”.substr(-2) ; 在IE8下是 abcd, 在其它浏览器下为: cd

 

在给几个面试题:

1.

或者

 

2.

结果: i没有被定义

梁栋说,http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf  里面有介绍

 Posted by at 下午 7:22

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据