StringPrototype.substring(Object, Double, Object) 方法

定義

建立一個新字串,包含指定字串中指定的連續字元。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 static System::String ^ substring(System::Object ^ thisob, double start, System::Object ^ end);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_substring)]
public static string substring(object thisob, double start, object end);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_substring)>]
static member substring : obj * double * obj -> string
Public Shared Function substring (thisob As Object, start As Double, end As Object) As String

參數

thisob
Object

這個方法作用的對象。

start
Double

第一個連續獲得的角色。

end
Object

最後一個連續獲得的角色。

傳回

一個包含 與 end之間start連續字元的新字串。

屬性

適用於

另請參閱