Created
December 23, 2013 08:07
-
-
Save zhangwc/8093308 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array: | |
splice(array, index, data1 [,data2] ...) 添加删除方法 | |
1)index为0时,不做删除 | |
2)index为负数时,从数组最后开始计算 ?? | |
3)index大于0时,删除并替代之后的对象?? | |
unshift() 方法可向数组的开头添加一个或更多元素,并返回新的长度。 | |
shift() 方法用于把数组的第一个元素从其中删除,并返回第一个元素的值。 | |
object.constructor 返回创建此object的构造函数内容。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment