<html> 
  <head> 
    <title>href.html </title> <script type="text/javascript" src="jquery.js">
</script>
/*运行总是报20行,缺少对象的错误,不知道哪里有错误*/ 
<script type="text/javascript" language="javascript"> 
function jq(){ 
alert("aaaaaaaaa"); 
  // alert($("#test").href()); 
  //$("#test").href("2.html"); 

</script> 
  </head> 
  <body> 
  <a href="#" id="test" onclick="jq()">取链接的值 </a> 
  </body> 
</html>缺少</script>