天天看點

js 判斷是否為chrome浏覽器

var ischrome =navigator.useragent.indexof("chrome") !==

-1

用 navigator.appversion

不好使,因為alert谷歌的版本号時,會顯出其所有支援浏覽器的字元串