<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() { //显示错误
$("button").click(function() {
$("p").hide();
});
});
</script>
</head>
<body>
<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>
Although I have never used it
sublime
, 但是它只是个编辑器啊, 他的jquery plugin
应该只是有语法提示功能吧, 你要运行js
还是要在解释器里运行的(比如浏览器), 这时候你需要jquery.js