ArrayPrototype.toString(Object) 方法

定义

创建指定对象的字符串表示形式,该对象连接各个元素并用逗号分隔这些元素。Creates a string representation of the specified object that concatenates the elements and separates them with a comma.

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

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

参数

thisob
Object

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

返回

String

一个字符串,用于连接 thisob 的各个元素,并用逗号分隔这些元素。A string that concatenates the elements of thisob and separates them with a comma.

属性

适用于

另请参阅