StringPrototype.substring(Object, Double, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個新字串,包含指定字串中指定的連續字元。
此 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連續字元的新字串。
- 屬性