前端常用的输出方式
document.write("hello world"); // //获得文档窗口并在其中写入"Hello, world!"
alert("hello world"); //弹出一个确认框,里面显示"hello world"
console.log("hello world"); //在控制台打印"hello world"
换行方法
document.write("hello<br>world");
alert("hello\nworld");
console.log("hello\nworld");