请在高版本IE上使用console进行调试(按F12打开开发者工具),低版本IE没有console 为安全的使用console,用前需判断: if(window.console && console.log){ console.log('xx'); }