shift


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

arrayObj.shift( )

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

说明

shift 方法可移除数组中的第一个元素并返回该元素。