var isChrome =navigator.userAgent.indexOf("Chrome") !== -1

用 navigator.appVersion 不好使,因为alert谷歌的版本号时,会显出其所有支持浏览器的字符串

05-04 04:00