在需要调试的js文件最顶部加上代码就可以看到了: console.log('haha'); debugger; 转载于:https://www.cnblogs.com/agilezhu/p/7668064.html