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);


,