javascript中三种输出方式总结
javascript输出是运行代码输出的表现形式,常见的有alert console.log document.write 等,javascript中三种输出方式总结
1,alert()方式
这种是弹出窗口的形式
<script>
alert("1222");
</script>
2,console.log调试模式
谷歌浏览器,火狐浏览器控制台可以显示
3,document.write 网页形式打印输出
document.write()打印输出
文章来自 96net.com.cn