判断是否引入jquery

主要使用typeof检验

1 <script language="javascript">
2 if(typeof jQuery == 'undefined'){
3     window.alert("没有jquery");
4 }
5 </script>

 来源:https://zhidao.baidu.com/question/2118505030615400587.html

posted @ 2017-03-01 14:42  万里冰封  阅读(3805)  评论(0编辑  收藏  举报