Javascript找到了Chrome和Dolphin之间的区别

时间:2014-02-04 11:28:47

标签: javascript android browser navigator

navigator.appName与所有这三种浏览器相同:

Netscape

navigator.vendor与所有这三种浏览器相同:

Google inc.

navigator.userAgent在2上是相同的:

// Android默认浏览器

'Mozilla/5.0 (Linux; U; Android 4.1.2; en-gb; GT-I9100 Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30'

// Android Google Chrome

'Mozilla/5.0 (Linux; Android 4.1.2; GT-I9100 Build/JZO54K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.99 Mobile Safari/537.36'

// Android Dolphin Browser

'Mozilla/5.0 (Linux; Android 4.1.2; GT-I9100 Build/JZO54K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.99 Mobile Safari/537.36'

如何使用javascript告诉Chrome和Dolphin之间的区别?

0 个答案:

没有答案