StringPrototype.charAt(Object, Double) Metod

Definition

Returnerar tecknet på den angivna positionen i det angivna objektet.

Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.

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

Parametrar

thisob
Object

Det objekt som den här metoden agerar på.

pos
Double

Tecknets position som ska returneras.

Returer

Tecknet på pos, om det finns ett.

Attribut

Gäller för

Se även