myeclipse2014 运行jquery

1.建立一个tomcat6.0项目文件konghao_jquery62

2.拷贝jquery-1.8.3.js 到项目目录中WebRoot

工程目录

image

3.建立一个index.html文件

<!DOCTYPE html>
<html>
  <head>
    <title>hello_jqueryl.html</title>
   
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
   
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<script type="text/javascript" src="jquery-1.8.3.js"></script>
<script>
    $(function(){
    alert("sss");
    });
</script>   
  </head>
 
  <body>
          本行是HTML中的文字。 <br>
  </body>
</html>

运行结果

image

posted @ 2014-10-07 12:53  elite_2012  阅读(216)  评论(0编辑  收藏  举报