Does IE9 enable 'something' when using developer tools?

前端 未结 2 1797
萌比男神i
萌比男神i 2021-01-18 03:27

Im using Google Maps Javascript API V3, and recently the icons on my map aren\'t showing up in IE9.

To get to the bottom of it, I turned on IE\'s developer t

2条回答
  •  旧时难觅i
    2021-01-18 03:53

    Any references to the global console object will only work if the IE Developer Tools are open. If the developer tools are closed, the global console object is undefined.

    For example, the following code will only run if the developer tools are open. If they're closed, they'll throw an error about console being undefined:

    console.log("test");
    

提交回复
热议问题