Array.Pop
function Pop () : object
Description描述
Removes the last element of the array and returns it
移除数组最后一个元素并返回它。
var arr = new Array ("Hello", "World");
//移除末尾的一个元素
arr.Pop();
// 打印结果只有"Hello"
print (arr);
最后修改:2010年11月28日 Sunday 23:00
function Pop () : object
Description描述
Removes the last element of the array and returns it
移除数组最后一个元素并返回它。
var arr = new Array ("Hello", "World");
//移除末尾的一个元素
arr.Pop();
// 打印结果只有"Hello"
print (arr);