javascript中的一点错误

很久没有接触web开发了,今天心血来潮看看jquery, 首先从最简单的hello world入手吧, 直接上代码

 1 <html>
2 <head>
3 <meta charset="utf-8">
4 <script src='jquery-1.6.3.js'/>
5 <title>demo</title>
6
7 </head>
8 <body>
9 <a href = "http:\\jquery.com">jquery</a>
10 <script type='text/javascript'>
11 jQuery(document).ready(function(){
12 alert("hello world");
13 });
14 </script>
15 test
16 </body>
17 </html>

保存运行,发现网页当中,并没有显示链接,问题出在那里? 仔细查找,原来

<script src='jquery-1.6.3.js'/>,

应该为

<script src='jquery-1.6.3.js'></script>

唉,细节不注意害死人啊。

posted @ 2011-09-09 23:03  samlee  阅读(149)  评论(0)    收藏  举报