我已經下載了jquery文件。另外,我把它放在我的標題之前。但瀏覽器不斷告訴我,jQuery沒有定義。 通過使用一些測試代碼,它表明沒有找到jQuery庫。無法訪問jquery
誰能告訴我如何解決它?
http://file.urin.take-uma.net/jquery.balloon.js-Demo.html(這是我下載的是jQuery的文件。)
PS:我在這個領域真正的新手。這是我第一次嘗試使用jQuery。如果可以訪問jQuery,我應該寫「$(function(){ $('selectors')。balloon(options); });」在HTML中?
這是我的代碼:
<head>
<meta charset="utf-8">
<script type="text/javascript" src="./js/jquery.balloon.min.js"></script> <script type="text/javascript">
if(typeof jQuery !='undefined')
{
alert("jQuery library is loaded!");
}else{
alert("jQuery library is not found!");
}
</script>
希望有人能幫助我。
也許你的來源不正確 – guradio
你的網站上的鏈接請。也許,你在 庫加載之前嘗試調用JQ函數 – Anon
不詢問我們調試幫助的問題不包括代碼,它們是無關緊要的,並且會被關閉 – baao