ArrayPrototype.pop(Object) 方法

定义

从指定数组中移除最后一个元素,并返回该元素。Removes the last element from the specified array and returns it.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 static System::Object ^ pop(System::Object ^ thisob);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Array_pop)]
public static object pop (object thisob);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Array_pop)>]
static member pop : obj -> obj
Public Shared Function pop (thisob As Object) As Object

参数

thisob
Object

此方法所作用于的对象。The object that this method is acting upon.

返回

Object

thisob 的最后一个元素。The last element of thisob.

属性

适用于

另请参阅