- var myArray = ["one", "two", "three"];
- // console.log( myArray ) => ["one", "two", "three"]
- myArray.length = 0;
- // console.log( myArray ) => []
- //该片段来自于http://www.codesnippet.cn/detail/151020136414.html
来源: http://www.codesnippet.cn/detail/151020136414.html