更新时间:2023-11-27 21:56:22
我通过具有敲出系统检查被用于访问该网站的浏览器后,使用下面的正则表达式解决了这个。
I solved this by using the Regex below after having a knock out system to check what browser is being used to access the site.
在这种情况下,即使浏览器IE被选中,并返回假的,我继续使用这个表达式和检查,看它是否是对用户代理匹配:
in this case, even if the browser "IE" is checked and returns false, I go ahead and use this regex and check to see if it is a match against the user agent:
(?:?:\\ B(MS)IE \\ S + | \\ bTrident \\ / 7 \\ .0 * \\ S + RV:)(\\ d +)
我希望这可以帮助别人。我测试了它和正常工作。我也改变了RV为12,向上,太如果IE12,他们改变RV为12,它工作正常的情况下。
I hope this helps someone. I tested it and works fine. I also changed the rv to be 12 and upwards, and it works fine too in case if in IE12, they change rv to be 12.