JavaScript Reference/Javascript Methods/concat 2 — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
"concat()" Example
<source lang="javascript">
<html> <body> <button onclick="var myS = new String("First String ");
alert(myS.concat("Another string"));">add two strings together</button>
</body> </html>
</source>
"concat()" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |String | +----------------+--------------------------------------------------------------+
</source>
"concat()" Syntax, Parameters and Note
<source lang="javascript">
Note: Merges multiple strings to a new string, which is the return value.
Syntax:
stringName.concat(paramN, . . . ,paramN)
paramN Required; a string or String object. </source>