<html>
<head>
<script type="text/javascript" src=".../jquery.js">
</head>
<body>
<table>
<tr>
<td id="Load">Button</td>
</tr>
</table>
<script>
//以下事件加载必须在 html加载完td Load 单元后再加载,否则会失效。
[color=blue]$("#Load").click(function(){
alert("hahaha");
});[/color]
</script>
</body>
</html>
比如以下这么写,事件就无法加载。
<script>
[color=blue]$("#Load").click(function(){
alert("hahaha");
});[/color]
</script>
<table>
<tr>
<td id="Load">Button</td>
</tr>
</table>