我必須學習JQuery。以下是他們教程中的第一個示例:JQuery - 啓動教程
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
alert("Thanks for visiting!");
});
</script>
</head>
<body>
<a href="http://jquery.com/">jQuery</a>
</body>
</html>
它不起作用。加載頁面後,我沒有看到任何彈出窗口。 我試圖代碼:
window.onload = function() { alert('...'); }
它的工作原理,但如沒有,爲什麼?
P.S.我已經下載jquery並將其複製到頁面的當前目錄。