问答详情
源自:2-1 JavaScript-输出内容(document.write)

这个是答案

<!DOCTYPE HTML>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>document.write</title>

  <script type="text/javascript">

    var mystr="我是";

    var mychar="JavaScript";

document.write(mychar+"<br/>");

document.write(mystr+mychar+"的忠实粉丝!");


  </script>

</head>

<body>

</body>

</html>


提问者:落俗 2015-02-05 10:24

个回答

  • SingleHe
    2015-12-15 20:26:22

    6666