var ischrome =navigator.useragent.indexof("chrome") !== -1 用 navigator.appversion 不好使,因為alert谷歌的版本号時,會顯出其所有支援浏覽器的字元串