jquery判断浏览器的内核

<script type='text/javascript'>
$(function(){
     if($.browser.msie) {
        alert("IE浏览器");
     }else if($.browser.opera) {
        alert("opera浏览器");
     }else if($.browser.mozilla) {
        alert("火狐浏览器");
     }else if($.browser.safari) {
        alert("safari浏览器");
     }
})
</script>
posted @ 2018-10-30 11:01  柒小乐  阅读(1472)  评论(0编辑  收藏  举报