Console.log not working at all

后端 未结 13 645
故里飘歌
故里飘歌 2020-12-29 02:13

A bunch of code isn\'t working and I\'m trying to identify where the problem lies but console.log() isn\'t logging any results in Chrome Dev tools, am I doing i

13条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-29 02:34

    In my case I was developing a Polymer WebComponent, which is included using into the main HTML document. Turns out that the WebComponent HTML file was being cached for some reason, even though I had changed it since the cached version.

    To solve it I opened the Developer Console (in Chrome), right clicked on the reload arrow next to the URL bar and selected "Empty cache and hard reload" - problem solved.

提交回复
热议问题