StringPrototype.charAt(Object, Double) 方法

定義

回傳該角色在指定物件中指定位置的位置。

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

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

參數

thisob
Object

這個方法作用的對象。

pos
Double

角色要回歸的位置。

傳回

如果有的話,就是 的 pos字元。

屬性

適用於

另請參閱