世界只因有你2017-05-19 10:44:23
push() 方法可向数组的末尾添加一个或多个元素,并返回新的长度。
3 is actually the length of the new array.
ringa_lee2017-05-19 10:44:23
Experiment yourself, push execution will return the length of the array
给我你的怀抱2017-05-19 10:44:23
push() adds one or more elements to the end of the array and returns the new length.
Reference http://www.w3school.com.cn/js...
高洛峰2017-05-19 10:44:23
The
push() method adds one or more elements to the end of the array and returns the new length of the array, so what is printed is the length of the array.
Refer to this document