var isChrome = navigator.userAgent.toLowerCase().match(/chrome/); 转载于:https://www.cnblogs.com/XiaoRuLiang/p/9228771.html