.js file works in chrome and firefox but not IE

前端 未结 3 929
悲哀的现实
悲哀的现实 2021-01-06 08:00

When testing my website out in IE11 certain parts of it don\'t work and I believe the issue lies with my \'custom.js\' file as all the problems link to that js. However, t

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-06 08:41

    You're using the javascript let keyword, which is only available on IE11. More information here...

    If the problem persists and you are sure the code is compiling, then you should activate the browser's debugger to figure out what's going on... Just place the keyword debugger; somewhere in your code, and the browser will suspend execution at that stop allowing you to inspect the variables...

    Something like this:

    debugger;
    $(".helpform-container:not(.displayblock)").hide();
    ...
    $("#news-4").before("

    Latest News

    ");

提交回复
热议问题