摘要:
//判断浏览器类型//利用 window.navigator.userAgent.toLowerCase(); //判断是否为firefox浏览器var check = function(regex){ return regex.test(window.navigator.userAgent.toLowerCase());}var isGecko = check(/gecko/) && !check(/webkit/);var isFF = check(/gecko/) && check(/firefox/); 阅读全文