首页 > 代码库 > js篇

js篇

使用jquery 获取浏览器类型:

var bInfo="";
if(brow.msie) {bInfo="Microsoft Internet Explorer "+brow.version;}
if(brow.mozilla) {bInfo="Mozilla Firefox "+brow.version;}
if(brow.safari) {bInfo="Apple Safari "+brow.version;}
if(brow.opera) {bInfo="Opera "+brow.version;}
alert(bInfo);

js篇