<html>
<head>
<title>jquery library is loaded or not</title>
</head>
<body>
<h1>jquery library is loaded or not </h1>
<script type="text/javascript" src="../jquery-1.11.1.min.js"></script>
<script type="text/javascript">
if(typeof jQuery!='undefined'){
alert("jQuery library is loaded!");
} else{
alert("jQuery library is not found");
}
if(jQuery){
alert("jQuery library is loaded!");
}else{
alert("jQuery library is not found!");
}
</script>
</body>
</html>
怎么检测jquery库是否加载
最新推荐文章于 2023-02-01 19:01:31 发布