<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$ (dokumen).sedia(fungsi() { //顯示錯(cuò)誤
$("butang").klik(fungsi() {
$("p").sembunyi();
});
});
< ;/skrip>
</head>
<badan>
<h2>This is a heading</h2>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
<button type="button">Click me</button>
</body>
</html>
Walaupun tak pernah gunasublime
, 但是它只是個(gè)編輯器啊, 他的jquery plugin
應(yīng)該只是有語(yǔ)法提示功能吧, 你要運(yùn)行js
還是要在解釋器里運(yùn)行的(比如瀏覽器), 這時(shí)候你需要jquery.js