JavaScript Reference/Javascript Methods/concat 2
Версия от 18:30, 25 мая 2010; (обсуждение)
"concat()" Example
<html>
<body>
<button onclick="var myS = new String("First String ");
alert(myS.concat("Another string"));">add two strings together</button>
</body>
</html>
"concat()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |String |
+----------------+--------------------------------------------------------------+
"concat()" Syntax, Parameters and Note
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.