通过值进行判断
navigator.userAgent.toUpperCase().indexOf("MSIE"); //是否是IE浏览器
navigator.userAgent.toUpperCase().indexOf("FIREFOX")//是否是火狐浏览器

标签: none

添加新评论