JavaScript 核心基础——(六)debug

52 阅读1分钟
debugger // 在代码中打了一个断点
console.log(a); // undefined
var a = 1;
console.log(a); // 1