+ -
当前位置:首页 → 问答吧 → 如何使用jQuery?

如何使用jQuery?

时间:2009-04-02

来源:互联网

如果创建一个WEB工程, 直接在js文件中使用jQuery?还是得像dwr等其它框架一样安装jar包?  貌似直接使用不起作用哎, 请教请教! 最好能给一个很小很小的demo,只需能展示出有jQuery的作用就行。 拜一记。

作者: 一路再走   发布时间: 2009-04-02

浪费各位大虾几分钟时间,給指点指点,  谢谢

作者: 一路再走   发布时间: 2009-04-02

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title> new document </title>
</head>
<body>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script type="text/javascript">
<!--
    alert($("body").html())
//-->
</script>
</body>
</html>

作者: shawphy   发布时间: 2009-04-02

谢谢版主 终于入门了 看了好几天的资料 就是没法试验 谢谢了

作者: 一路再走   发布时间: 2009-04-03