在控制臺中輸出的信息,在瀏覽器中按下F12
console.log("控制臺");
定義一個變量 [容器]
var zh={
name:"李四",
sex:'男',
age:'15'
}
使用console與alert的區(qū)別
console.log(zh);
alert("ok");

console.log()不會阻塞程序的執(zhí)行
alert()會
在控制臺中輸出的信息,在瀏覽器中按下F12
console.log("控制臺");
定義一個變量 [容器]
var zh={
name:"李四",
sex:'男',
age:'15'
}
使用console與alert的區(qū)別
console.log(zh);
alert("ok");
console.log()不會阻塞程序的執(zhí)行
alert()會