Why would javascript eval work in chrome, safari, but in firefox only when firebug on?

怎甘沉沦 提交于 2019-12-06 07:25:08

console.log is your culprit.

Whenever you're logging in JavaScript, it's a good idea to check if console exists before calling it's functions:

if(window.console) console.log('whatever');

That way, it will only execute when the console is available.

console.log(responseText);

this line seems problematic to me. console exists only when Firebug is on, so you'll have to comment it, or do some checking whether it exists before using it.

Brian Moeskau

Not sure if removing console.log fixed this for you, but please see my other answer regarding the loadScripts config also.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!