javascript判断chrome浏览器的方法
var isChrome = window.navigator.userAgent.indexOf("Chrome") !== -1; if (isChrome) { alert("是Chrome浏览器"); } else { alert("不是Chrome浏览器"); }
var isChrome = window.navigator.userAgent.indexOf("Chrome") !== -1; if (isChrome) { alert("是Chrome浏览器"); } else { alert("不是Chrome浏览器"); }