JavaScript Reference/Javascript Methods/charAt — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
"charAt()" Example
<source lang="javascript">
<html> <body> <button onclick="var myS = new String("Sample String");
alert(myS.charAt(3));">get char at</button>
</body> </html>
</source>
"charAt()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |String | +----------------+--------------------------------------------------------------+
</source>
"charAt()" Syntax, Parameters and Note
<source lang="javascript">
Note: Returns the character at the specified index in string.
Syntax:
stringName.charAt(param1)
Parameters:
param1 Required; the index position of the character. </source>