<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

</head>
<body>
字符串连接<br>
<p ></p>
<script>
var text1 = "Hello";
var text2 = "World!";
var text3 = text1.concat(" ",text2);
document.getElementById("demo").innerHTML = text3;
</script>

</body>
</html>

js字符串连接

 

 学习网址:https://www.w3school.com.cn/js/js_string_methods.asp

相关文章:

  • 2021-10-07
  • 2022-12-23
猜你喜欢
  • 2022-02-25
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2021-06-15
相关资源
相似解决方案