JS操作

1.JavaScript-输出内容(document.write) document.write() 可用于直接向 HTML 输出流写内容。简单的说就是直接在网页中输出内容。 第一种:输出内容用""括起,直接输出""号内的内容。 <script type="text/javascript"> document.write("I love JavaScript!"); //内容用""括起来,""
相关文章
相关标签/搜索