Using console.log() with firebug works locally, but not when published to my live site

后端 未结 3 1838
梦毁少年i
梦毁少年i 2021-01-06 19:43

I\'m using the:

console.log()

method to log messages to firefox (3.6.6)/firebug while working on my webapp. When I view the app locally, it w

3条回答
  •  心在旅途
    2021-01-06 20:29

    i found this one which looks even better because it has all the console methods. not just log

    (function(){
       if (!window.console||!console.firebug){
      var methods = [
         "log", "debug", "info", "warn", "error", "assert",
         "dir", "dirxml", "group", "groupEnd", "time", "timeEnd",
         "count", "trace", "profile", "profileEnd"
      ];
      window.console = {};
      for (var i=0; i

提交回复
热议问题