本文介绍了检测微软的边缘或Spartan用JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是已知的边缘或Spartan浏览器的用户代理?谁能告诉我如何检测这个浏览器和IE浏览diferentiate预先在其发布的?

Is the user agent for Edge or Spartan browsers known already? Can anyone tell me how to detect this browser and diferentiate it from IE in advance of its release?

推荐答案

一个简单的谷歌搜索找到我,你要寻找的答案:的

A simple google search found me the answer you are looking for: http://forum.piwik.org/read.php?3,125732

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36 Edge/12.0

因此​​,你应该匹配:边缘\\ / \\ D +

这篇关于检测微软的边缘或Spartan用JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 07:00