Is there a way to log to console without breaking code under IE?

前端 未结 6 624
后悔当初
后悔当初 2021-02-05 18:50

I\'m trying to use console.log to put some logging into the javascript side of my program. I noticed, though, that unless the dev console is open in IE, JS basically stops worki

6条回答
  •  萌比男神i
    2021-02-05 19:39

    I solved it by using the "fake console" described above, to prevent the script execution breaking. It is included only for InternetExplorer < 10. I include this in my html head:

    
    

提交回复
热议问题