pop()


移除数组中的最后一个元素并返回该元素。

arrayObj.pop( )

必选的 arrayObj 引用是一个 Array 对象。

说明

如果该数组为空,那么将返回 undefined。