十、JavaScript之文本相加

mac2022-07-05  17

一、代码如下

二、执行效果如下

<!DOCTYPE html> <html> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <body> <h1>我的第一张网页</h1> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = "Bill" + " " + "Gates"; </script> </body> </html>

 

转载于:https://www.cnblogs.com/tianpan2019/p/11302764.html

最新回复(0)