StringPrototype.charCodeAt(Object, Double) 方法

定義

傳回位於指定物件中指定位置之字元的 ASCII 碼。

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

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

參數

thisob
Object

這個方法執行位置的物件。

pos
Double

要傳回字元碼之字元的位置。

傳回

位於 pos 之字元的字元碼 (如果有的話)。

屬性

適用於

另請參閱