我已經使用bob tabors jQuery視頻教程here很長一段時間了,我無法讓jQuery工作。jQuery不適用於新手
這裏是我的html
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="script.js"></script>
<link rel="stylesheet" type="text/css" href="main.css" />
<title>14. Getting Started with jQuery</title>
</head>
<body>
<h1 id="title">14. Getting Started with jQuery</h1>
<p id="first">
<span>Now is the time for all good men to come to
the aid of their country.</span>
</p>
<p id="second">
<strong>In the end these things matter most:
How well did you love? How fully did you live?</strong>
</p>
<p id="third">
<a id="myAnchor" href="http://www.learnvisualstudio.net">Visit my website</a>
</p>
</body>
</html>
這裏是我的js
jQuery(document).ready(function() {
alert("thsdjasl");
}
但HTML後,毫無戒備來。
是'jquery.js' jQuery源代碼還是您在問題底部顯示的js? –
檢查你的控制檯...你錯過了一個');' – Syjin