摘要: 1.使用debugger关键字在代码中断点 function something() { debugger;var a = 0; console.log(a); } 然后调用这个方法 something(); 函数执行时,调试程序碰到debugger关键字,就自动进入断点了 2.使用chrome调试 阅读全文
posted @ 2012-07-17 10:03 zhea55 阅读(536) 评论(2) 推荐(0) 编辑