<一> jQuery 简单介绍

jQuery 库位于一个 JavaScript 文件中,其中包含了所有的 jQuery 函数。

可以通过下面的标记把 jQuery 添加到网页中:

<head>
<script type="text/javascript" src="jquery.js"></script>
</head>

<script> 标签应该位于页面的 <head> 部分。

也可以使用网络路径,jQuery库可以从jQuery.com 下载

还有比如微软的CDN http://www.asp.net/ajaxlibrary/cdn.ashx#jQuery_Releases_on_the_CDN_0

$("#btnShow").bind("click", function(event) { $("#divMsg").show(); })

$("#btnShow") jQuery的Id选择器

bind 事件绑定函数

 

posted @ 2013-10-09 21:48  Lilideng  阅读(153)  评论(0编辑  收藏  举报