JavaScript 字符串 concat 函数


JavaScript 字符串 concat 函数

<html>
   <head>
      <title>JavaScript String concat() Method</title>
   </head>

   <body>

      <script type = "text/javascript">
         var str1 = new String( "This is string one" );
         var str2 = new String( "This is string two" );
         var str3 = str1.concat( str2 );

         document.write("Concatenated String :" + str3);
      </script>

   </body>
</html>