[2016-02-09][javascript][在网页上显示内容]

[2016-02-09][javascript][在网页上显示内容]
  • 通过调用 document.write(string); 来表示内容
    • string 为 html网页中的内容
    • 如:
      1
      2
      3
      4
      5
      6
      <script type="text/javascript">
          var test = parseInt("as123");
          document.write(test);
          document.write("</br>");
          document.write(6666);
      </script>




来自为知笔记(Wiz)


posted on 2016-02-09 22:19  红洋  阅读(140)  评论(0)    收藏  举报

导航