主要使用typeof检验

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

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

相关文章:

  • 2022-02-26
  • 2022-01-06
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-28
  • 2021-11-28
  • 2021-11-28
  • 2022-01-17
  • 2021-06-16
  • 2022-02-05
相关资源
相似解决方案