Jquery fail to detect IE 11

前端 未结 4 678
长情又很酷
长情又很酷 2020-11-29 07:18

Just stumbled upon an issue. When trying to detect IE 11 (the beta version currently on air) using Jquery, the result is \'firefox\'. The same code detect IE 10. I need to k

4条回答
  •  暖寄归人
    2020-11-29 08:04

    The final solution:

    if (!!navigator.userAgent.match(/Trident\/7\./))
      return "ie";  
    

    We can only hope that the release version will act the same.

提交回复
热议问题