檢查是否使用Javascript加載了jquery我正在嘗試檢查我的Jquery庫是否已加載到我的HTML頁面上。我正在檢查它是否有效,但有些事情是不對的。這是我有的:<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="/query-1.6.3.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
if (jQuery) {
// jQuery is loaded
alert("Yeah!");
} else {
// jQuery is not loaded
alert("Doesn't Work");
}
});
</script>
檢查是否使用Javascript加載了jquery
慕的地8271018
2019-08-12 11:35:53