StringPrototype.split(Object, VsaEngine, Object, Object) 方法
定义
返回一个数组,其中包含指定对象中的子字符串,这些子字符串由指定字符分隔。Returns an array that contains the substrings in the specified object that are delimited by the specified characters. 由指定限制约束的数组中的子字符串数。The number of substrings in the array is constrained by the specified limit.
此 API 支持产品基础结构,不能在代码中直接使用。
public:
static Microsoft::JScript::ArrayObject ^ split(System::Object ^ thisob, Microsoft::JScript::Vsa::VsaEngine ^ engine, System::Object ^ separator, System::Object ^ limit);
[Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 34, Microsoft.JScript.JSBuiltin.String_split)]
public static Microsoft.JScript.ArrayObject split (object thisob, Microsoft.JScript.Vsa.VsaEngine engine, object separator, object limit);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasEngine | Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_split)]
public static Microsoft.JScript.ArrayObject split (object thisob, Microsoft.JScript.Vsa.VsaEngine engine, object separator, object limit);
[<Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 34, Microsoft.JScript.JSBuiltin.String_split)>]
static member split : obj * Microsoft.JScript.Vsa.VsaEngine * obj * obj -> Microsoft.JScript.ArrayObject
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasEngine | Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_split)>]
static member split : obj * Microsoft.JScript.Vsa.VsaEngine * obj * obj -> Microsoft.JScript.ArrayObject
Public Shared Function split (thisob As Object, engine As VsaEngine, separator As Object, limit As Object) As ArrayObject
参数
- thisob
- Object
此方法所作用于的对象。The object that this method is acting upon.
- engine
- VsaEngine
对脚本引擎的引用。A reference to the scripting engine.
- separator
- Object
用于在 thisob 中分隔子字符串的字符。The characters that delimit the substrings in thisob.
- limit
- Object
要返回的子字符串的最大数量。The maximum number of substrings to return.
返回
一个数组,其中包含 thisob 中的子字符串,这些子字符串由 separator 分隔。An array that contains the substrings in thisob that are delimited by separator.
- 属性