JavaScript Reference/Javascript Methods/sub
Версия от 18:30, 25 мая 2010; (обсуждение)
"sub()" Example
<html>
<body>
<button onclick="var myS = new String("Sample String");
document.write("regular string"+myS.sub());">
sub me
</button>
</body>
</html>
"sub()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |String |
+----------------+--------------------------------------------------------------+
"sub()" Syntax, Parameters and Note
Note:
Display a string as subscript text.
Syntax:
stringName.sub()