Why does JavaScript only work after opening developer tools in IE once?

前端 未结 12 2327
予麋鹿
予麋鹿 2020-11-22 02:20

IE9 Bug - JavaScript only works after opening developer tools once.

Our site offers free pdf downloads to users, and it has a simple \"enter password to download\" f

12条回答
  •  执笔经年
    2020-11-22 02:36

    I guess this could help, adding this before any tag of javascript:

    try{
      console
    }catch(e){
       console={}; console.log = function(){};
    }
    

提交回复
热议问题