ignore firebug console when not installed

后端 未结 9 1259
旧时难觅i
旧时难觅i 2021-02-02 04:15

I use Firebug\'s console.log() for debugging my website. If I try viewing my website in browsers without Firebug then I get a console is not defined er

9条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 04:57

    Firebug source code provides a file to do this :

    See firebugx.js

    Do not reinvent the wheel every day :)

提交回复
热议问题