JavaScript console log in Magento

后端 未结 9 1706
长发绾君心
长发绾君心 2020-12-09 11:46

I have a custom phtml pages in Magento. As far I know Magento uses jQuery and prototype libraries.

For example, if I need external jQuery/jQueryUI, I need t

9条回答
  •  悲&欢浪女
    2020-12-09 11:56

    Using console.log() on browsers using Firebug 1.9.0+ with Magento up to 1.6.2.0 will fail, because Magento checks for the console.firebug property, but this property has been removed with Firebug 1.9.0 for privacy reasons.

    See the file js/varien/js.js:

    if (!("console" in window) || !("firebug" in console))
    {
        // :
    }
    

    Since Magento 1.7.0.0 this whole condition is commented out to fix this (and other) issue(s).

提交回复
热议问题