jQuery不能在我的HTML页面上工作。可能有些代码/语法问题。需要从一些好看的眼睛看。jQuery不能在我的HTML页面上工作
<head>
<script src="../common/js/jquery-1.9.0.js"/>
<script>
$(document).ready(function(){
$("#insert").click(function(){
alert("ok");
});
});
</script>
</head>
<body>
<input type="submit" id="insert" value="Insert"/>
</body>
</html>
我的文件在那里我确定,但我的警报没有弹出。请帮助
'body'标签在哪里? – undefined 2013-05-06 07:45:36
正在加载jquery文件 – Satpal 2013-05-06 07:46:17
@undefined:'body'标记可以隐含在HTML5中。 [是的,真的。](http://www.w3.org/TR/html5/syntax.html#optional-tags)*(我不是说我认为这是个好主意......)* – 2013-05-06 07:46:44