Javascript best practice: handling Firebug-specific code

前端 未结 9 764
春和景丽
春和景丽 2021-02-03 10:31

Firebug is certainly a wonderful tool for javascript debugging; I use console.log() extensively.

I wanted to know if I can leave the Firebug-specific code in production.

9条回答
  •  孤街浪徒
    2021-02-03 10:50

    I have had many a headache caused by this.

    I use console.log() a lot, and until recently, found that it would cause the entire JS code to fail in versions of FF not using firebug.

    I usually run a find before going live, and commenting it out.

    D

提交回复
热议问题