$(document).ready(function(){
  $("a").click(function(){
alert("单击") ;
});
});在new_file.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type = "text/javascript" src = "new_file.js" ></script>
<script type = "text/javascript" src = "jquery.js" ></script>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>Untitled Document</title>
</head>
<script language="JavaScript">
 $(document).ready(function(){
  $("a").click(function(){
alert("单击") ;
});
 });
</script>
<body >

<a href="a">abc</a>
</body>
</html>
没有问题.
可我把他拿出来放到new_file.js中就不行了。
为什么?