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

要取得的最後一個連續字元。

傳回

新字串,其中包含介於 startend 之間的連續字元。

屬性

適用於

另請參閱