javascript 容易忽略或者误用的七个基础知识点

1. 在 String.prototype.replace 方法中使用 /g 和 /i 标志位

2. 类数组对象和 Array.prototype.slice 方法

 

3. Array.prototype.sort 方法

4. 用 length 属性来截断数组

5. 使用 push 来合并数组

6. 高效探测功能特性和对象属性

 

7. 事件对象的 preventDefault 和 stopPropagation 方法

 

http://kb.cnblogs.com/page/187757/

 

posted @ 2014-03-13 10:49  百里水上  阅读(98)  评论(0编辑  收藏  举报