<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>臭皮匠 &#187; javascript</title>
	<atom:link href="http://guogoul.com/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://guogoul.com</link>
	<description></description>
	<lastBuildDate>Wed, 07 Jul 2010 04:53:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jQuery 学习笔记(10)_ajax</title>
		<link>http://guogoul.com/2008/04/12/jquery_10/</link>
		<comments>http://guogoul.com/2008/04/12/jquery_10/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 16:04:10 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/04/12/jquery-%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b010_ajax/</guid>
		<description><![CDATA[本记记录78-87点
78.$.post(url, params, callback) 用post的方式下载一个页面返回XMLHttpRequest
  url: 请求的页面
params:表示请求的要发送的参数.
callback: 请求结束后,调用的方法
eg:$.post(&#8221;test.cgi&#8221;,
{ name: &#8220;John&#8221;, time: &#8220;2pm&#8221; },
function(data){
alert(&#8221;Data Loaded: &#8221; + data);
}
);
79. ajaxStart(callback) 当ajax请求发送前,将触发callback.
eg;
$("#loading").ajaxStart(function(){
  $(this).show();
});

80. ajaxSend(callback)当ajax请求发送时触发callback,参数是XMLHttpRequest和settings请求设置

eg:
$("#msg").ajaxSend(function(request, settings){
  $(this).append("&#60;li&#62;Starting request at " + settings.url + "&#60;/li&#62;");
});


81.ajaxComplete(callback)当一个ajax请求完成时调用callback.回调参数为XMLHttpRequest和settings请求设置

eg:
$("#msg").ajaxComplete(function(request, settings){
  $(this).append("&#60;li&#62;Request Complete.&#60;/li&#62;");
});

82.ajaxSuccess(callback)当一个ajax请求成功时调用回调参数为XMLHttpRequest和settings请求设置

eg:$("#msg").ajaxSuccess(function(request, settings){
  $(this).append("&#60;li&#62;Successful Request!&#60;/li&#62;");
});

83.ajaxError(callback)当一个ajax请求失败时调用回调参数为XMLHttpRequest和settings请求设置

eg:$("#msg").ajaxError(function(request, settings){
  $(this).append("&#60;li&#62;Error requesting page " + settings.url + "&#60;/li&#62;");
});

84.ajaxStop(callback)当所有的ajax请求结束时,将触发callback

eg:$("#loading").ajaxStop(function(){
  $(this).hide();
});

85.load(url, params, callback)加载url的内容,并把得到的内容插入到DOM中去.

 注意:避免去获取script脚本.可以用$.getScript
url:请求的页面,params:发送的参数.
callback: [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/04/12/jquery_10/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>jQuery学习笔记8(Effects)</title>
		<link>http://guogoul.com/2008/04/09/jquery_8/</link>
		<comments>http://guogoul.com/2008/04/09/jquery_8/#comments</comments>
		<pubDate>Wed, 09 Apr 2008 14:55:21 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/04/09/jquery_8/</guid>
		<description><![CDATA[本记主要关于如何用jQuery处理特效    （70-76）
71. animate(params, speed, easing, callback)动画特效.
params:是动画的设置,用来表示动画的展现以及结束,
speed:动画的速率可以是(&#8221;slow&#8221;, &#8220;normal&#8221;, or &#8220;fast&#8221;)也可以是毫秒数.eg: 1000
easing:默认是&#8217;linear&#8217;,如想用其它参数,就要添加jQuery的特效插件.
callback: 当动画完成时的调用的函数.
eg:
1. $(&#8221;p&#8221;).animate({ height: &#8216;toggle&#8217;, opacity: &#8216;toggle&#8217; }, &#8220;slow&#8221;);
2. $(&#8221;p&#8221;).animate({ left: 50, opacity: &#8217;show&#8217; }, 500);
3. $(&#8221;p&#8221;).animate({  opacity: &#8217;show&#8217;}, &#8220;slow&#8221;, &#8220;easein&#8221;);
72. fadeIn(speed, callback),fadeOut(speed, callback),fadeTo(speed, opacity, callback)
淡入,淡出效果,speed表示速度,可以用&#8221;slow,normal,fast&#8221;代替,也可以直接写毫秒数. callback表示淡入,淡出后的调用的函数.fadeTo表示淡入到某个透明度。opacity (Number):取值范围就0-1
eg:
$("p").fadeTo("slow", 0.5, function(){
  alert("Animation Done.");
});

73. hide(),hide(speed, callback).前者是把element隐藏用的是display:none的样式。后
者是把element的长，宽，以及透明度都改变。callback表示动画完成后调用的函数。speed表示速度
eg: 1. &#60;p&#62;Hello&#60;/p&#62;

$("p").hide()==&#62;[ &#60;p style="display: none"&#62;Hello&#60;/p&#62; ]
2.$("p").hide("slow",function(){alert("Animation Done.");}); [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/04/09/jquery_8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery学习笔记7(event)</title>
		<link>http://guogoul.com/2008/04/07/jquery_7/</link>
		<comments>http://guogoul.com/2008/04/07/jquery_7/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 15:08:28 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/04/07/jquery%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b07event/</guid>
		<description><![CDATA[本篇主要记录jQuery事件响应的处理
50. bind(type, data, fn)对所有选定的element判断事件,type是事件类型,data是参数,fn是事处理方法.
eg:1. $(&#8221;p&#8221;).bind(&#8221;click&#8221;, function(){ alert( $(this).text() ); });
2. function handler(event) { alert(event.data.foo); }
$(&#8221;p&#8221;).bind(&#8221;click&#8221;, {foo: &#8220;bar&#8221;}, handler)==&#62;alert(&#8221;bar&#8221;)
51. blur() 触发blur方法,blur(fn)设置blur函数
eg: &#60;p&#62;Hello&#60;/p&#62;
$(&#8221;p&#8221;).blur( function() { alert(&#8221;Hello&#8221;); } );==&#62;
&#60;p onblur=&#8221;alert(&#8217;Hello&#8217;);&#8221;&#62;Hello&#60;/p&#62;
52. change(fn)设置onchange事件的方法
eg:&#60;p&#62;Hello&#60;/p&#62;
$(&#8221;p&#8221;).change( function() { alert(&#8221;Hello&#8221;); } );==&#62;&#60;p onchange=&#8221;alert(&#8217;Hello&#8217;);&#8221;&#62;Hello&#60;/p&#62;
53 click()触发onclick事件, click(fn)设置onclick方法

54. dblclick(fn)设置ondblclick方法
55.error(fn)设置error方法
56 focus()触发onfocus,focus(fn)设置focus方法
eg:&#60;p&#62;Hello&#60;/p&#62;
$(&#8221;p&#8221;).focus( function() { alert(&#8221;Hello&#8221;); } );
==&#62;&#60;p onfocus=&#8221;alert(&#8217;Hello&#8217;);&#8221;&#62;Hello&#60;/p&#62;
57 hover(over, out) 设置mouse移入以及mouse移出时所触发的事件.

eg: $("p").hover(function(){
  $(this).addClass("over");
},function(){
  $(this).addClass("out");
});

58 keydown(fn),keypress(fn),keyup(fn),按键盘相关的操作分别对应onkeydown,

onkeypress,onkeyup.

59 mousedown(fn),mousemove(fn),mouseout(fn),mouseover(fn),mouseup(fn)这些是mouse
相关的操作分别对应onmousedown,onmousemove,onmouseout,onmouseover,onmouseup.
60 load [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/04/07/jquery_7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery学习笔记6</title>
		<link>http://guogoul.com/2008/04/06/jquery_6/</link>
		<comments>http://guogoul.com/2008/04/06/jquery_6/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 05:31:29 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/04/06/jquery_6/</guid>
		<description><![CDATA[下部主要记录的是CSS的控制命令
40    1/. CSS(name)读取样式属性值
eg:&#60;p style=&#8221;color:red;&#8221;&#62;Test Paragraph.&#60;/p&#62;
$(&#8221;p&#8221;).css(&#8221;color&#8221;)==&#62;&#8221;red&#8221;;
2/css(properties)设置style
eg:&#60;p&#62;Test Paragraph.&#60;/p&#62;
$("p").css({ color: "red", background: "blue" })==&#62;
&#60;p style="color:red; background:blue;"&#62;Test Paragraph.&#60;/p&#62;;
3/css(key, value)设置单个样式属性,如果设置的值是数字的话,会被自动转化为像素单位
eg : &#60;p&#62;Test Paragraph.&#60;/p&#62;
$("p").css("color","red")==&#62;&#60;p style="color:red;"&#62;Test Paragraph.&#60;/p&#62;;
$("p").css("left",30)==&#62;&#60;p style="left:30px;"&#62;Test Paragraph.&#60;/p&#62;;

41  1/height()取得当前匹配节点数组中的第一个节点的高的值

eg: &#60;p&#62;This is just a test.&#60;/p&#62;
$("p").height() ==&#62;300;
2/ height(val) 设置所有匹配的节点的高,如果val的单位不是ex ,%,那么单位自动设为px
eg: &#60;p&#62;This is just a test.&#60;/p&#62;
$("p").height(20)==&#62;&#60;p style="height:20px;"&#62;This is just a test.&#60;/p&#62;;

42 width() 设置宽度,width(val)设置高度.用法与height一样
以上是基本的CSS的js用法,下面主要记录jQuery的一些功能函数

43 $.browser 用于判断浏览器的分别为safari,opera, msie, mozilla.这些方法要等DOM ready
后才能使用

eg: if($.browser.safari) {
$( [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/04/06/jquery_6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery学习笔记5</title>
		<link>http://guogoul.com/2008/04/05/jquery_5/</link>
		<comments>http://guogoul.com/2008/04/05/jquery_5/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 16:06:39 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/04/05/jquery_5/</guid>
		<description><![CDATA[本讲: 29&#8211;39点(与dom相关)
29 add(params)  在$所取到的节点数组中添加新的节点．
参数可以是expr, html,element
eg: 1.&#60;p&#62;Hello&#60;/p&#62;&#60;span&#62;Hello Again&#60;/span&#62;
$(&#8221;p&#8221;).add(&#8221;span&#8221;)==&#62;[ &#60;p&#62;Hello&#60;/p&#62;, &#60;span&#62;Hello Again&#60;/span&#62; ]
2.&#60;p&#62;Hello&#60;/p&#62;
$(&#8221;p&#8221;).add(&#8221;&#60;span&#62;Again&#60;/span&#62;&#8221;)==&#62;
[ &#60;p&#62;Hello&#60;/p&#62;, &#60;span&#62;Again&#60;/span&#62; ]
3. &#60;p&#62;Hello&#60;/p&#62;&#60;p&#62;&#60;span id=&#8221;a&#8221;&#62;Hello Again&#60;/span&#62;&#60;/p&#62;
$(&#8221;p&#8221;).add( document.getElementById(&#8221;a&#8221;) )===&#62;
[ &#60;p&#62;Hello&#60;/p&#62;, &#60;span id="a"&#62;Hello Again&#60;/span&#62; ]
30 children(expr)取得子节点,当expr为空时，取得所有的子节点
eg&#60;div&#62;&#60;span&#62;Hello&#60;/span&#62;&#60;p class=&#8221;selected&#8221;&#62;Hello Again&#60;/p&#62;&#60;p&#62;And Again&#60;/p&#62;&#60;/div&#62;
$(&#8221;div&#8221;).children()==&#62;[&#62;&#60;span&#62;Hello&#60;/span&#62;&#60;p class="selected"&#62;Hello Again&#60;/p&#62;&#60;p&#62;And Again&#60;/p&#62; ]
$(&#8221;div&#8221;).children(&#8221;.selected&#8221;)==&#62;
[ &#60;p class="selected"&#62;Hello Again&#60;/p&#62; ]

31 contains(str)找出字节点中包含有str的节点．str起到过滤做用

eg: &#60;p&#62;This is just a test.&#60;/p&#62;&#60;p&#62;So is this&#60;/p&#62;
$("p").contains("test")==&#62;[ &#60;p&#62;This is just a test.&#60;/p&#62; ]

32. filter(expression)过滤找出符合expression的节点

eg:&#60;p&#62;Hello&#60;/p&#62;&#60;p&#62;Hello Again&#60;/p&#62;&#60;p class="selected"&#62;And Again&#60;/p&#62;
$("p").filter(".selected")==&#62;&#62;&#60;p [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/04/05/jquery_5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery学习笔记4</title>
		<link>http://guogoul.com/2008/04/04/jquery_4/</link>
		<comments>http://guogoul.com/2008/04/04/jquery_4/#comments</comments>
		<pubDate>Fri, 04 Apr 2008 11:11:08 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/04/04/jquery_4/</guid>
		<description><![CDATA[本记：从21&#8211;&#62;28点
21 prepend(content) 添加到element里面的前部．与append的方位不一样

&#60;p&#62;I would like to say: &#60;/p&#62;
$("p").prepend("&#60;b&#62;Hello&#60;/b&#62;")==&#62;&#60;p&#62;&#60;b&#62;Hello&#60;/b&#62;I would like to say: &#60;/p&#62;;

22 prependTo(content) 与prepend的添加对像相反．

&#60;p&#62;I would like to say: &#60;/p&#62;&#60;div id="foo"&#62;&#60;b&#62;Hello&#60;/b&#62;&#60;/div&#62;
$("p").prependTo("#foo") ==&#62;
&#60;div id="foo"&#62;&#60;p&#62;I would like to say: &#60;/p&#62;&#60;b&#62;Hello&#60;/b&#62;&#60;/div&#62;;

23 clone(deep) 克隆一个新的element．参数deep为flase里不包括子element

&#60;b&#62;Hello&#60;/b&#62;&#60;p&#62;, how are you?&#60;/p&#62;
$("b").clone().prependTo("p")==&#62;&#60;b&#62;Hello&#60;/b&#62;&#60;p&#62;&#60;b&#62;Hello&#60;/b&#62;, how are you?&#60;/p&#62;

24.empty() 删除所有的内部节点

&#60;p&#62;Hello, &#60;span&#62;Person&#60;/span&#62; &#60;a href="#"&#62;and person&#60;/a&#62;&#60;/p&#62;
$("p").empty()==&#62;[ &#60;p&#62;&#60;/p&#62; ]


25. insertAfter(content) 与after差不多．

$(a).after(b) === $(b).insertAfter(a)

26. insertBefore(content) 与 before差不多

$(a).before(b) === $(b).insertBefore(a)

27. remove(expt) 删除条件是expt的相应的element,当expt为空时．全部删除

&#60;p class="hello"&#62;Hello&#60;/p&#62; [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/04/04/jquery_4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery学习笔记(3)</title>
		<link>http://guogoul.com/2008/04/03/jquery_3/</link>
		<comments>http://guogoul.com/2008/04/03/jquery_3/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 14:57:35 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/04/03/jquery_3/</guid>
		<description><![CDATA[本记： 13&#8212;-20点
13 removeAttr(name) 删除属性
eg: &#60;input disabled=&#8221;disabled&#8221;/&#62;
$(&#8221;input&#8221;).removeAttr(&#8221;disabled&#8221;)=&#62;&#60;input/&#62;
14 removeClass(class) 删除样式，当class是空时删除所有的样式，如果class为指定样式则删　　　　　 指定样式
eg: &#60;p class=&#8221;highlight selected first&#8221;&#62;Hello&#60;/p&#62;
$(&#8221;p&#8221;).removeClass(&#8221;selected highlight&#8221;)=&#62;[ &#60;p class="first"&#62;Hello&#60;/p&#62; ]
$(&#8221;p&#8221;).removeClass() =&#62;[ &#60;p&#62;Hello&#60;/p&#62; ]
15. text() 取得element中的内容text(val) 设置element内容text与html差不多，只是text会把&#60;,&#62;用html标识符替换
eg: &#60;p&#62;&#60;b&#62;Test&#60;/b&#62; Paragraph.&#60;/p&#62;&#60;p&#62;Paraparagraph&#60;/p&#62;
$(&#8221;p&#8221;).text() =&#62;Test Paragraph.Paraparagraph;
&#60;p&#62;Test Paragraph.&#60;/p&#62;
$(&#8221;p&#8221;).text(&#8221;&#60;b&#62;Some&#60;/b&#62; new text.&#8221;);==&#62;
&#60;p&#62;&#60;b&#62;Some&#60;/b&#62; new text.&#60;/p&#62;
$(&#8221;p&#8221;).text(&#8221;&#60;b&#62;Some&#60;/b&#62; new text.&#8221;, true) ==&#62;
&#60;p&#62;Some new text.&#60;/p&#62;

16.toggleClass(class) 这是一个比较有用的方法，就是当element存在参数中的样式的时候
取消，如果不存在就设置此样式

eg:&#60;p&#62;Hello&#60;/p&#62;&#60;p class="selected"&#62;Hello Again&#60;/p&#62;
$("p").toggleClass("selected")==&#62;
[ &#60;p class="selected"&#62;Hello&#60;/p&#62;, &#60;p&#62;Hello Again&#60;/p&#62; ]

17 val() 取得第一个element的vlaue值 val(val) 设置属性的值

eg: &#60;input type="text" value="some text"/&#62;
$("input").val() == [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/04/03/jquery_3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery学习笔记（２）</title>
		<link>http://guogoul.com/2008/04/02/jquery_2/</link>
		<comments>http://guogoul.com/2008/04/02/jquery_2/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 15:57:45 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/04/02/jquery%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%ef%bc%88%ef%bc%92%ef%bc%89/</guid>
		<description><![CDATA[本记: 7&#8212;&#8211;12点
７．index(subject) : 查找相应节点的位置，从０开始计数.如果没找到返回-1
eg: &#60;div id=&#8221;foobar&#8221;&#62;&#60;b&#62;&#60;/b&#62;&#60;span id=&#8221;foo&#8221;&#62;&#60;/span&#62;&#60;/div&#62;
$("*").index( $('#foobar')[0] ) =&#62;0
$("*").index( $('#foo')[0] ) =&#62;  2
$("*").index( $('#bar')[0] )=&#62; -1

8. length 返回节点的个数

eg:&#60;img src="test1.jpg"/&#62; &#60;img src="test2.jpg"/&#62;
$("img").length =&#62; 2
同样的方法还有size()
$("img").size() =&#62; 2;

9.　lt(pos) 删除一个节点

eg:&#60;p&#62;This is just a test.&#60;/p&#62;&#60;p&#62;So is this&#60;/p&#62;
$("p").lt(1) ==&#62;[ &#60;p&#62;This is just a test.&#60;/p&#62; ]

10. addClass 给一个element添加class可以添加多个

eg: &#60;p&#62;Hello&#60;/p&#62;
$("p").addClass("selected")=&#62;[ &#60;p class="selected"&#62;Hello&#60;/p&#62; ]
$("p").addClass("selected highlight")=&#62;
[ &#60;p class="selected highlight"&#62;Hello&#60;/p&#62; ]


11. attr(name) 取得element的指定属性值

eg:  [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/04/02/jquery_2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery学习笔记（1）</title>
		<link>http://guogoul.com/2008/04/01/jquery_1/</link>
		<comments>http://guogoul.com/2008/04/01/jquery_1/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 15:59:18 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.guogoul.com/2008/04/01/jquery%e5%ad%a6%e4%b9%a0%e7%ac%94%e8%ae%b0%ef%bc%881%ef%bc%89/</guid>
		<description><![CDATA[前言:
朋友推荐用jQuery做js开发库.学习后发现果然不错不敢独享，现把学习笔记贡上
本笔记翻译自：可视JQuery
1.$()的用法
1.1 $(html)　＝&#62;根据ＨＴＭＬ参数动态建立一个jquery对像
例子：$(&#8221;&#60;div&#62;hello&#60;/div&#62;&#8221;).appendTo(&#8221;#body&#8221;),动态的创建一个div element插入到ID为body的element中去
1.2 $(element) =&#62;把节点对像转化成一个jquery对像
例子:$(document.body).background( &#8220;black&#8221; );
1.3 $(function) =&#62;是$(doucment).ready()的快捷键．当页面加载结束后才会执行function．$(function)可以调用多次，相当于绑定多个$(function)
eg: $(function(){
//document is ready
})
1.4 $(expr,context)=&#62;在一定的范围（context）内根据搜索条件(expr)搜索出jQuery对像
eg: 1. $(&#8217;span&#62;p&#8217;)   :找出所有span中的p结点．
2.$(&#8217;input:radio&#8217;,document.forms[0])搜索出第一个表单中的radio
2. $.extend(prop)向jquery命名空间中添加方法,用此方法可以方便的对jquery进行扩展
$.extend({
min: function(a, b) { return a &#60; b ? a : b; },
max: function(a, b) { return a &#62; b ? a : b; }
});
alert($.min(3,6)); //显示3
alert($.max(3,6));//显示6
3. $.noConflict()  取消$代替jQuery.
例如:
jQuery.noConflict(); // Do something with jQuery
jQuery(&#8221;div p&#8221;).hide();
// Do something [...]]]></description>
		<wfw:commentRss>http://guogoul.com/2008/04/01/jquery_1/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
