document.write实现在网页中输出内容。
有以下四种使用形式:
1.document.write("Hello World");
2.var str="Hello World";
document.write(str);
3.document.write("Hello "+"World");
4.输出html标签
document.write("hello"+"<br>"+"world");
document.write实现在网页中输出内容。
有以下四种使用形式:
1.document.write("Hello World");
2.var str="Hello World";
document.write(str);
3.document.write("Hello "+"World");
4.输出html标签
document.write("hello"+"<br>"+"world");