锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲男人天堂2018av,亚洲七七久久精品中文国产,亚洲美国产亚洲AVhttp://m.tkk7.com/leekiang/category/29462.htmlMDA/MDD/TDD/DDD/DDDDDDDzh-cnSun, 11 Mar 2012 01:29:30 GMTSun, 11 Mar 2012 01:29:30 GMT60slideViewerhttp://m.tkk7.com/leekiang/archive/2012/03/11/371659.htmlleekiangleekiangSat, 10 Mar 2012 19:00:00 GMThttp://m.tkk7.com/leekiang/archive/2012/03/11/371659.htmlhttp://m.tkk7.com/leekiang/comments/371659.htmlhttp://m.tkk7.com/leekiang/archive/2012/03/11/371659.html#Feedback0http://m.tkk7.com/leekiang/comments/commentRss/371659.htmlhttp://m.tkk7.com/leekiang/services/trackbacks/371659.htmlslideViewerPro錛歅rohttp://www.gcmingati.net/wordpress/wp-content/lab/jquery/svwt/index.html

slideViewerPro浣跨敤閰嶇疆璇存槑 http://www.oschina.net/p/slideviewerpro


Can I make the Jquery slideViewer autoplay?
<scripttype="text/javascript">
var theLinks;
var nCount =0;
var theTimerID;

function init(){
聽 聽 $
("div#mygalone").slideView();
聽 聽 theLinks
= jQuery('#stripTransmitter0 a');

聽 聽 聽 聽
//for kill interval purposes
聽 聽 theTimerID
= setInterval("autoSlide()",5000);
}
function autoSlide(){
聽 聽 jQuery
.each(theLinks,function(i){
聽 聽 聽 聽
if(jQuery(this).hasClass('current')){
聽 聽 聽 聽 聽 聽 jQuery
(theLinks[((i+1< theLinks.length)?(i+1):0)]).trigger("click");
聽 聽 聽 聽 聽 聽
returnfalse;
聽 聽 聽 聽
}
聽 聽
});
}

$
(window).bind("load", init );
</script>

The way I see it you basically have 3 options here:

(1) - Use slideViewPro, but disable thumbnails using the thumbsVis:false option as shown below

$("div#noui").slideViewerPro({
聽 聽 galBorderWidth
:0,
聽 聽 autoslide
:true,
聽 聽 thumbsVis
:false,
聽 聽 shuffle
:true
});

(2) - Switch to using the jQuery cycle plug-in instead

(3) - Edit the source code of original slideViewer and add your own autoslide implementation by using timers and firing the click event on the navigation.





leekiang 2012-03-11 03:00 鍙戣〃璇勮
]]>
jQuery Fundamentals,寰堟鐨勫湪綰挎暀紼?/title><link>http://m.tkk7.com/leekiang/archive/2010/10/29/336499.html</link><dc:creator>leekiang</dc:creator><author>leekiang</author><pubDate>Fri, 29 Oct 2010 09:16:00 GMT</pubDate><guid>http://m.tkk7.com/leekiang/archive/2010/10/29/336499.html</guid><wfw:comment>http://m.tkk7.com/leekiang/comments/336499.html</wfw:comment><comments>http://m.tkk7.com/leekiang/archive/2010/10/29/336499.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/leekiang/comments/commentRss/336499.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/leekiang/services/trackbacks/336499.html</trackback:ping><description><![CDATA[http://jqfundamentals.com/book/<img src ="http://m.tkk7.com/leekiang/aggbug/336499.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/leekiang/" target="_blank">leekiang</a> 2010-10-29 17:16 <a href="http://m.tkk7.com/leekiang/archive/2010/10/29/336499.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>澶氭枃浠朵笂浼?/title><link>http://m.tkk7.com/leekiang/archive/2010/02/02/311732.html</link><dc:creator>leekiang</dc:creator><author>leekiang</author><pubDate>Tue, 02 Feb 2010 14:57:00 GMT</pubDate><guid>http://m.tkk7.com/leekiang/archive/2010/02/02/311732.html</guid><wfw:comment>http://m.tkk7.com/leekiang/comments/311732.html</wfw:comment><comments>http://m.tkk7.com/leekiang/archive/2010/02/02/311732.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/leekiang/comments/commentRss/311732.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/leekiang/services/trackbacks/311732.html</trackback:ping><description><![CDATA[ <a target="_blank" >jquery-transmit</a>:<br />jQuery Multi-file Uploader with Flash<img src ="http://m.tkk7.com/leekiang/aggbug/311732.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/leekiang/" target="_blank">leekiang</a> 2010-02-02 22:57 <a href="http://m.tkk7.com/leekiang/archive/2010/02/02/311732.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>嫻呮瀽jQuery妗嗘灦涓庢瀯閫犲璞?杞?http://m.tkk7.com/leekiang/archive/2009/10/08/297473.htmlleekiangleekiangThu, 08 Oct 2009 13:53:00 GMThttp://m.tkk7.com/leekiang/archive/2009/10/08/297473.htmlhttp://m.tkk7.com/leekiang/comments/297473.htmlhttp://m.tkk7.com/leekiang/archive/2009/10/08/297473.html#Feedback0http://m.tkk7.com/leekiang/comments/commentRss/297473.htmlhttp://m.tkk7.com/leekiang/services/trackbacks/297473.html
榪欐槸涓浜涘垎鏋恓Query妗嗘灦鐨勬枃瀛?

聽聽聽 閽堝jQuery 1.3.2鐗堟湰

聽聽聽 闈㈠悜鐨勮鑰呭簲鍏峰浠ヤ笅瑕佹眰

聽聽聽 1.闈炲父鐔熸?zhèn)塇TML

聽聽聽 2.闈炲父鐔熸?zhèn)塲avascript璇硶鐭ヨ瘑

聽聽聽 3.鐔熸?zhèn)塲avascript闈㈠悜瀵硅薄鏂歸潰鐨勭煡璇?/p>

聽聽聽 4.鐔熺粌浣跨敤jQuery妗嗘灦

聽聽聽 璦褰掓浼狅紒

聽聽聽 jQuery瀵硅薄鐨勫垵濮嬪寲鏄啓鍦ㄥ尶鍚嶅嚱鏁伴噷鐨?/p>

聽聽聽 灝卞儚榪欐牱錛?/p>

聽聽聽 錛坒unction錛堬級{alert錛?jQuery妗嗘灦鍒嗘瀽"錛墋錛夛紙錛夛紱

聽聽聽 絎竴涓嫭鍙鋒槸澹版槑浜嗕竴涓嚱鏁幫紝絎簩涓嫭鍙鋒槸鎵ц榪欎釜鍑芥暟銆備篃灝辨槸璇達(dá)紝jQuery妗嗘灦鍦ㄩ〉闈㈣澆鍏ョ殑鏃跺欏凡緇忓仛浜嗕竴浜涗簨鎯咃紙榪欎釜涓尶鍚嶅嚱鏁板凡緇忚鎵ц浜嗭級銆? 鍋氱殑榪欎簺浜嬫儏浣挎垜浠彲浠ラ氳繃$錛?#yourId"錛夋垨$錛?.yourClass"錛夌瓑鏂瑰紡鑾峰彇欏甸潰鍏冪礌錛屽茍鎶婅幏鍙栧埌鐨勫厓绱犲寘瑁呮垚jQuery瀵硅薄銆?/p>

聽聽聽 鍖垮悕鍑芥暟鏄庝箞瀹炵幇榪欎簺鍔熻兘鐨勫憿錛?/p>

聽聽聽 棣栧厛妗嗘灦瀹氫箟浜嗕袱涓牳蹇冨璞?/p>

聽聽聽 jQuery = window.jQuery = window.$ = function錛?selector錛?context 錛?{}

聽聽聽 涓涓槸jQuery

聽聽聽 涓涓槸$

聽聽聽 榪欎袱涓璞¢兘鎸囧悜涓涓嚱鏁?/p>

聽聽聽 榪欎釜鍑芥暟鏄垜浠嬌鐢?錛堬級鎴杍Query錛堬級鏂規(guī)硶鏃剁殑鍏ュ彛錛岃繖涓柟娉曡繑鍥炰竴涓猨Query.fn.init錛?selector錛?context 錛夛紱鐨勫疄渚嬶紝鍏跺疄榪欎釜瀹炰緥鏄竴涓猨Query瀵硅薄銆?/p>

聽聽聽 jQuery瀵硅薄鏄竴涓粈涔堟牱鐨勫璞″憿錛?/p>

聽聽聽 jQuery瀵硅薄鍏跺疄鏄竴涓猨avascript鐨勬暟緇?/p>

聽聽聽 榪欎釜鏁扮粍瀵硅薄鍖呭惈125涓柟娉曞拰4涓睘鎬?/p>

聽聽聽 4涓睘鎬у垎鍒槸

聽聽聽 jQuery聽聽聽聽 褰撳墠鐨刯Query妗嗘灦鐗堟湰鍙?/p>

聽聽聽 length聽聽聽聽 鎸囩ず璇ユ暟緇勫璞$殑鍏冪礌涓暟

聽聽聽 context聽聽聽 涓鑸儏鍐典笅閮芥槸鎸囧悜HtmlDocument瀵硅薄

聽聽聽 selector聽聽 浼犻掕繘鏉ョ殑閫夋嫨鍣ㄥ唴瀹孤?濡傦細(xì)#yourId鎴栥倅ourClass絳?/p>

聽聽聽 濡傛灉浣犻氳繃$錛?#yourId"錛夋柟娉曡幏鍙杍Query瀵硅薄錛屽茍涓斾綘鐨勯〉闈腑鍙湁涓涓猧d涓簓ourId鐨勫厓绱犻偅涔?錛?#yourId"錛塠0]灝辨槸 HtmlElement鍏冪礌涓巇ocument.getElementById錛?yourId"錛夎幏鍙栫殑鍏冪礌鏄竴鏍風(fēng)殑

jQuery瀵硅薄鏄庝箞鏋勯犲嚭鏉ョ殑鍛紵

聽聽聽 榪欎釜瀵硅薄灝辨槸鍒氭墠鎴戜滑鎻愬埌鐨?/p>

聽聽聽 jQuery = window.jQuery = window.$ = function錛?selector錛?context 錛?{}

聽聽聽 妗嗘灦涓嶅彧涓烘瀵硅薄瀹氫箟浜嗕竴涓柟娉曪紝榪樺畾涔変簡瀹冪殑鍘熷瀷錛坧rototype錛?/p>

聽聽聽 jQueryjQuery.fn = jQuery.prototype = {//姝ゅ涓簀son瀵硅薄}

聽聽聽 鍘熷瀷鐨勫畾涔夋槸閫氳繃json瀵硅薄瀹氫箟鐨?/p>

聽聽聽 濡?/p>

聽聽聽 {

聽聽聽 init錛?function錛?selector錛?context 錛?{//鏂規(guī)硶浣搣錛?/p>

聽聽聽 jQuery錛?"1.3.2"錛?/灞炴?/p>

聽聽聽 size錛?function錛堬級 {//鏂規(guī)硶浣搣錛?/p>

聽聽聽 //鈥︹?/p>

聽聽聽 }

聽聽聽 鍓嶉潰鎻愬埌鐨?25涓柟娉?涓睘鎬ф湁涓閮ㄥ垎鍦ㄨ繖涓猨son瀵硅薄涓畬鎴愬畾涔夌殑 榪欎釜json瀵硅薄涓涓涓柟娉曞氨鏄痠nit鏂規(guī)硶涔熷氨鏄叆鍙f柟娉曚腑鐨刯Query.fn.init錛?selector錛?context 錛夛紱姝ゆ柟娉曚笌涓涓鍒欒〃杈懼紡瀵硅薄閰嶅悎鏉ユ瀯閫爅Query瀵硅薄

聽聽聽 榪欎釜姝e垯琛ㄨ揪寮忎負(fù)錛?/p>

聽聽聽 quickExpr = /^[^<]*錛?lt;錛堛倈\s錛?>錛塠^>]*$|^#錛圼\w-]+錛?/

聽聽聽 涓嬮潰鎴戜滑璇翠竴涓媔nit鏂規(guī)硶鐨勫疄鐜伴昏緫

聽聽聽 姝ゆ柟娉曟湁涓や釜鍙傛暟

聽聽聽 涓涓槸selector錛堥夋嫨鍣級

聽聽聽 涓涓槸context錛堜笂涓嬫枃錛?/p>

聽聽聽 selector灝辨槸鎴戜滑鐢?錛?#yourId"錛夋垨jQuery錛?.yourClass"錛変紶閫掕繘鏉ョ殑鍙橀噺

聽聽聽 榪欎釜鍙傛暟涓嶄竴瀹氭槸瀛楃涓詫紝涔熷彲鑳芥槸鍏朵粬褰㈠紡鐨勫彉閲?/p>

聽聽聽 絳変細(xì)鍎挎垜浠氨浼?xì)浠嬀l嶅埌

聽聽聽 context鍙傛暟鎴戜滑鍦ㄤ嬌鐢╦Query鐨勬椂鍊欏緢灝戠敤鍒幫紝鏆備笖涓嶈〃

聽聽聽 娉ㄦ剰榪欎袱涓弬鏁伴兘鍦ㄨ繑鍥炵殑jQuery瀵硅薄涓綋鐜板嚭鏉ヤ簡錛堜互涓や釜鍚屽悕鐨勫睘鎬у睍紺猴級

聽聽聽 涓嬮潰鐪嬩竴涓嬭繖涓柟娉曚綋鍐呴儴鐨勫疄鐜伴昏緫

聽 //濡傛灉娌℃湁閫夋嫨鍣ㄦ垨鑰呴夋嫨鍣ㄤ負(fù)絀虹殑璇濓紝灝辨妸document瀵硅薄璧嬪肩粰浠?br />selector = selector || document;
//濡傛灉selector鍙傛暟鏄痙om鍏冪礌錛岀洿鎺ヨ繑鍥瀓Query瀵硅薄
//涔熷氨鏄浣犲彲浠?(document.getElementById("allen"))鎶婁綘鐨勫厓绱犲皝瑁呮垚jQuery瀵硅薄
if ( selector.nodeType ) {
this[0] = selector;
this.length = 1;
this.context = selector;
return this;
}
//typeof 鍙栧璞$殑綾誨瀷錛岀敤涓変釜絳夊彿鏁堢巼杈冮珮錛?涓嶉渶瑕佺被鍨嬭漿鎹紝涓や釜絳夊彿榛樿鏈夌被鍨嬭漿鎹?br />if ( typeof selector === "string" ) {
//榪欓噷鐢ㄥ埌浜嗘垜浠墠闈㈡彁鍒扮殑姝e垯琛ㄨ揪寮弎uickExpr
//match鍏跺疄鏄竴涓暟緇?br />//絎?涓厓绱犳槸涓庢鍒欒〃杈懼紡鐩稿尮閰嶇殑鏂囨湰
//絎?涓厓绱犳槸涓庢鍒欒〃杈懼紡鐨勭1涓瓙琛ㄨ揪寮忕浉鍖歸厤鐨勬枃鏈紙濡傛灉鏈夌殑璇濓級
//絎?涓厓绱犳槸絎?涓瓙琛ㄨ揪寮忕浉鍖歸厤鐨勬枃鏈紙濡傛灉鏈夌殑璇濓級
//絎?涓厓绱犳槸絎?涓瓙琛ㄨ揪寮忕浉鍖歸厤鐨勬枃鏈紙濡傛灉鏈夌殑璇濓級榪欓噷灝辨槸鍏冪礌鐨処D錛屼笉鍖呭惈#
var match = quickExpr.exec( selector );
//姝e垯琛ㄨ揪寮忓尮閰嶅埌浜嗗唴瀹孤犅?騫朵笖 match[1]涓嶄負(fù)絀?鎴栬?context涓虹┖
//match[1]涓嶄負(fù)絀虹殑鏃跺檚elector鏄疕TML瀛楃涓詫紝涔熷氨鏄綘鍙互鐢?("
xland
")鎶婂璞″寘瑁呮垚jQuery瀵硅薄
//context涓虹┖鐨勬椂鍊檚elector鏄〉闈㈠厓绱營D
if ( match && (match[1] || !context) ) {
聽//閫夋嫨鍣ㄤ負(fù)html瀛楃涓猜?姝ゆ儏鍐墊殏涓斾笉琛?br />if ( match[1] ){
selector = jQuery.clean( [ match[1] ], context );}
//閫夋嫨鍣ㄤ負(fù)ID
else {
//寰楀埌鍏冪礌
var elem = document.getElementById( match[3] );
聽//濡傛灉寰楀埌浜嗚繖涓厓绱犱絾鏄厓绱犵殑ID灞炴т笉鏄痬atch[3]錛岃煩鍏ュ垎鏀傚垎鏀噷闈㈢殑涓滆タ鍋氫簡浠涔堝伐浣滐紝鏆備笖涓嶈〃
if ( elem && elem.id != match[3] ){
return jQuery().find( selector );}
//鎶婂緱鍒扮殑欏甸潰鍏冪礌灝佽鎴恓Query瀵硅薄
//濡傛灉elem涓虹┖錛屽氨浼犲叆涓涓┖鏁扮粍錛屾鏋舵庝箞澶勭悊姝ょ┖鏁扮粍錛屾殏涓斾笉琛?br />//濡傛灉涓嶄負(fù)絀哄氨璺沖叆鎴戜滑鍓嶉潰璇寸殑if ( selector.nodeType )鍒嗘敮錛屾瀯閫犲嚭jQuery瀵硅薄鏉?br />var ret = jQuery( elem || [] );
聽//璁劇疆jQuery瀵硅薄鐨刢ontext灞炴?br />ret.context = document;
聽//璁劇疆jQuery瀵硅薄鐨剆elector灞炴?br />ret.selector = selector;
聽//榪斿洖榪欎釜瀵硅薄緇欒皟鐢ㄨ?br />return ret;
}

鑷蟲

聽聽聽 var obj = $錛堚?yourId鈥濓級錛?/p>

聽聽聽 鏋勯爅Query瀵硅薄鐨勫垵姝ュ伐浣滃氨鍋氬畬浜?/p>





leekiang 2009-10-08 21:53 鍙戣〃璇勮
]]>
ajax璺ㄥ煙璋冪敤鍙妀sonphttp://m.tkk7.com/leekiang/archive/2009/07/19/287296.htmlleekiangleekiangSat, 18 Jul 2009 17:48:00 GMThttp://m.tkk7.com/leekiang/archive/2009/07/19/287296.htmlhttp://m.tkk7.com/leekiang/comments/287296.htmlhttp://m.tkk7.com/leekiang/archive/2009/07/19/287296.html#Feedback0http://m.tkk7.com/leekiang/comments/commentRss/287296.htmlhttp://m.tkk7.com/leekiang/services/trackbacks/287296.htmlAjax鐨勫簲鐢ㄤ腑錛岀敱浜庡畨鍏ㄧ殑闂錛屾祻瑙堝櫒榛樿鏄笉鏀寔璺ㄥ煙璋冪敤鐨勩備紶緇熻В鍐崇殑鏂規(guī)硶錛屽寘鎷細(xì)錛堝弬鑰僪ttp://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/錛?/p>
Local proxy:
Needs infrastructure (can't run a serverless client) and you get double-taxed on bandwidth and latency (remote - proxy - client).
Flash:
Remote host needs to deploy a crossdomain.xml file, Flash is relatively proprietary and opaque to use, requires learning a one-off moving target programming langage.
Script tag:
Difficult to know when the content is available, no standard methodology, can be considered a "security risk".

浠ヤ笂鏂規(guī)硶閮藉悇鏈夌己闄鳳紝閮戒笉鏄緢濂藉瑙e喅鏂規(guī)銆傚悗鏉ュ嚭鐜頒簡涓縐嶅彨JSON with Padding 鐨勬妧鏈紝綆縐?JSONP .錛堝師鐞嗗弬鑰僪ttp://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/錛夛紝搴? 鐢↗SONP鍙互瀹炵幇JSON鏁版嵁鐨勮法鍩熻皟鐢ㄣ傞潪甯哥殑騫歌繍錛孞Query1.2浠ュ悗鏀寔JSONP鐨勫簲鐢ㄣ備笅闈晶閲嶈鏄庡湪JQuery涓紝Json鐨勮法鍩? 璋冪敤銆?/p>

聽聽聽聽聽 搴旂敤JSONP瀹炵幇Json鏁版嵁璺ㄥ煙璋冪敤錛岄渶瑕佹湇鍔″櫒绔笌瀹㈡埛绔殑鍚堜綔瀹屾垚銆傚紩鐢↗query瀹樻柟鐨勪緥瀛愶紝瀹㈡埛绔帀鐢ㄥ涓嬶細(xì)

$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?",
function(data){
$.each(data.items, function(i,item){
$("<img/>").attr("src", item.media.m).appendTo("#images");
if ( i == 3 ) return false;
});
});

聽聽聽 娉ㄦ剰榪欓噷璋冪敤鐨勫湴鍧涓璲soncallback=?鏄叧閿殑鎵鍦紒鍏朵腑錛岀鍙蜂細(xì)琚玅uery鑷姩鏇挎崲鎴愬叾浠栫殑鍥炶皟鏂規(guī)硶鐨勫悕縐幫紝鍏蜂綋榪囩▼鍜屽師鐞嗘垜浠繖閲屼笉鐞? 浼?xì)銆傛垜浠叧蹇冪殑鏄痡soncallback=?璧蜂粈涔堜綔鐢ㄤ簡錛熷師鏉soncallback=?琚浛鎹㈠悗錛屼細(xì)鎶婃柟娉曞悕縐頒紶緇欐湇鍔″櫒銆傛垜浠湪鏈嶅姟鍣ㄧ瑕佸仛浠 涔堝伐浣滃憿錛熸湇鍔″櫒瑕佹帴鍙楀弬鏁癹soncallback錛岀劧鍚庢妸jsoncallback鐨勫間綔涓篔SON鏁版嵁鏂規(guī)硶鍚嶇О榪斿洖錛屾瘮濡傛湇鍔″櫒鏄疛SP,鎴戜滑浼?xì)杩? 鏍峰仛錛?/p>

聽聽聽聽聽 ...

聽聽聽聽聽 String jsoncallback=request.getParameter("jsoncallback");

聽聽聽聽聽 ...

聽聽聽聽聽 out.print(jsoncallback+"({\"account\":\"XX\",\"passed\":\"true\",\"error\":\"null\"})");

Jquery鍙栧緱鐨勬暟鎹彲鑳藉涓嬶細(xì)

聽聽聽聽聽 JQUET0988788({"account":"XX","passed":"true","error":"null"})

鎬葷粨錛岀敤JSONP瑕佸仛涓や歡浜嬶細(xì)

聽聽聽聽聽 1/璇鋒眰鍦板潃鍔犲弬鏁幫細(xì)jsoncallback=?

聽聽聽聽聽 2/鏈嶅姟鍣ㄦ鎶妀soncallback鐨勫間綔涓烘柟娉曞悕浼犲洖鏉ワ紝濡侸QUET098788(...)

鍙傝冿細(xì)

http://www.javaeye.com/topic/169765

http://www.javaeye.com/topic/260647



leekiang 2009-07-19 01:48 鍙戣〃璇勮
]]>
jquery涓庡叾浠栧簱鐨勫啿紿佸強瑙e喅http://m.tkk7.com/leekiang/archive/2009/06/11/281476.htmlleekiangleekiangThu, 11 Jun 2009 06:50:00 GMThttp://m.tkk7.com/leekiang/archive/2009/06/11/281476.htmlhttp://m.tkk7.com/leekiang/comments/281476.htmlhttp://m.tkk7.com/leekiang/archive/2009/06/11/281476.html#Feedback0http://m.tkk7.com/leekiang/comments/commentRss/281476.htmlhttp://m.tkk7.com/leekiang/services/trackbacks/281476.html
濡傛灉寮曞叆jquery鍚庡啀寮曞叆
Scriptaculous鐨?code>effects.js,灝卞彲鑳藉嚭鐜拌帿鍚嶅叾濡欑殑闂銆?br />jQuery("#id")姝e父錛屼絾綾諱技浜巎Query("name='test'")涔嬬被鐨勬煡璇㈠氨浼?xì)鍑洪敊銆?br />鍘熷洜鏄棫鐗堟湰(1.5.1)鐨?code>effects.js閲屾湁浠g爜姹℃煋浜咥rray鐨刢all鏂規(guī)硶
Array.prototype.call聽=function()聽{
聽聽
var聽args聽=聽arguments;
聽聽
this.each(function(f){聽f.apply(this,聽args)聽});
}

鍙傝冧竴
鍙傝冧簩
http://www.javaeye.com/topic/84683
http://www.javaeye.com/topic/184859


leekiang 2009-06-11 14:50 鍙戣〃璇勮
]]>
json-lib.jar鍖呬嬌鐢ㄧ瑪璁?/title><link>http://m.tkk7.com/leekiang/archive/2009/03/11/259204.html</link><dc:creator>leekiang</dc:creator><author>leekiang</author><pubDate>Wed, 11 Mar 2009 11:59:00 GMT</pubDate><guid>http://m.tkk7.com/leekiang/archive/2009/03/11/259204.html</guid><wfw:comment>http://m.tkk7.com/leekiang/comments/259204.html</wfw:comment><comments>http://m.tkk7.com/leekiang/archive/2009/03/11/259204.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/leekiang/comments/commentRss/259204.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/leekiang/services/trackbacks/259204.html</trackback:ping><description><![CDATA[1錛屼嬌鐢╦dk1.3鐗堟湰鐨刯son-lib.jar鏃朵緷璧栫殑鍖?涓嶄竴瀹氬噯紜紝鍙槸浣滀釜璁板綍)<br />commons-beanutils.jar;//蹇呴』鏄?.7浠ヤ笂<br />commons-collection.jar;//蹇呴』3.1浠ヤ笂<br /> ezmorph.jar;<img src ="http://m.tkk7.com/leekiang/aggbug/259204.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/leekiang/" target="_blank">leekiang</a> 2009-03-11 19:59 <a href="http://m.tkk7.com/leekiang/archive/2009/03/11/259204.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>濡備綍鍙栨秷宸茬粡娉ㄥ唽鍦╥nput涓婄殑onfocus浜嬩歡錛屼互鍙妘nbind鐨勯棶棰?/title><link>http://m.tkk7.com/leekiang/archive/2008/11/04/238677.html</link><dc:creator>leekiang</dc:creator><author>leekiang</author><pubDate>Tue, 04 Nov 2008 10:27:00 GMT</pubDate><guid>http://m.tkk7.com/leekiang/archive/2008/11/04/238677.html</guid><wfw:comment>http://m.tkk7.com/leekiang/comments/238677.html</wfw:comment><comments>http://m.tkk7.com/leekiang/archive/2008/11/04/238677.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/leekiang/comments/commentRss/238677.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/leekiang/services/trackbacks/238677.html</trackback:ping><description><![CDATA[閬囧埌涓涓渶姹傦紝闇瑕佹牴鎹綋鍓嶉〉闈㈢殑鐘舵佸姩鎬佽緗畾涔夊湪input涓婄殑my97鏃ユ湡鎺т歡鐨刼nfocus浜嬩歡鏄惁鍚敤銆傚嚑緇忓懆鎶橈紝鎵嶆悶瀹氥?br />瀵逛簬宸茬粡鍐欏湪input涓婄殑onfocus浜嬩歡:<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">input聽</span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="text"</span><span style="color: rgb(255, 0, 0);">聽name</span><span style="color: rgb(0, 0, 255);">="finishtime"</span><span style="color: rgb(255, 0, 0);">聽id</span><span style="color: rgb(0, 0, 255);">="finishtime"</span><span style="color: rgb(255, 0, 0);">聽聽readonly</span><span style="color: rgb(0, 0, 255);">="readonly"</span><span style="color: rgb(255, 0, 0);"><br />聽onfocus</span><span style="color: rgb(0, 0, 255);">=WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd聽</span><span style="color: rgb(255, 0, 0);">HH:mm'})聽class</span><span style="color: rgb(0, 0, 255);">="Wdate"</span><span style="color: rgb(0, 0, 255);">></span></div>鎴戠敤jquery鐨剈nbind鍑芥暟姝繪椿閮借В鍐充笉浜嗐?br />鏈鍚庡彧鑳界敤IE鐨刣etachEvent鏉ヨВ鍐籌紝鑰岀敤榪欎釜detachEvent鍙堟湁涓や釜瑕佹敞鎰忕殑:<br />(1)detachEvent鐨勪簨浠跺繀欏繪槸鍏堝墠attachEvent鐨勩?br />(2)鍑芥暟涓嶈兘甯﹀弬鏁幫紝鏁呯敤浜嗕釜鑷畾涔夌殑鏃犲弬鐨刴y97dp鍑芥暟鏉ヤ腑杞?br />鐪熸槸鎼炰笉鎳傦紝鍙堜笉鑳戒笓闂ㄨ姳鏃墮棿鏉ユ妸js浜嬩歡鏈哄埗鎼炲緱寰堟竻妤氥?br />浠g爜濡備笅:<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">聽</span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">></span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);"><br />聽</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">聽my97dp(){<br />聽WdatePicker({skin:'whyGreen',dateFmt:'yyyy</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">-</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">MM</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">-</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">dd聽HH:mm'});<br />聽}<br />聽jQuery(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">function</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">(){<br />jQuery('#finishtime').get(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">0</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">).attachEvent('onfocus',my97dp);<br />聽</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">聽status</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">'${obj.status}';<br />聽</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">if</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">(status</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">==</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">'</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">2</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">'</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">||</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">status</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">==</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">'</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">3</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">'){<br />聽</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">var</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">聽t</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">=</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">jQuery('#finishtime').addClass('readonly')<br />聽.attr('readonly',</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 255);">true</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">).removeClass('Wdate').get(</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">0</span><span style="background-color: rgb(245, 245, 245); color: rgb(0, 0, 0);">);<br />聽t.detachEvent('onfocus',my97dp);<br />聽}<br />聽});<br />聽</span><span style="color: rgb(0, 0, 255);"></</span><span style="color: rgb(128, 0, 0);">script</span><span style="color: rgb(0, 0, 255);">></span><span style="color: rgb(0, 0, 0);"><br />聽</span><span style="color: rgb(0, 0, 255);"><</span><span style="color: rgb(128, 0, 0);">input聽</span><span style="color: rgb(255, 0, 0);">type</span><span style="color: rgb(0, 0, 255);">="text"</span><span style="color: rgb(255, 0, 0);">聽name</span><span style="color: rgb(0, 0, 255);">="finishtime"</span><span style="color: rgb(255, 0, 0);">聽id</span><span style="color: rgb(0, 0, 255);">="finishtime"</span><span style="color: rgb(255, 0, 0);">聽readonly</span><span style="color: rgb(0, 0, 255);">="readonly"</span><span style="color: rgb(255, 0, 0);">聽class</span><span style="color: rgb(0, 0, 255);">="Wdate"</span><span style="color: rgb(0, 0, 255);">></span></div><br /><img src ="http://m.tkk7.com/leekiang/aggbug/238677.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/leekiang/" target="_blank">leekiang</a> 2008-11-04 18:27 <a href="http://m.tkk7.com/leekiang/archive/2008/11/04/238677.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>jquery鎹㈣偆http://m.tkk7.com/leekiang/archive/2008/08/14/221860.htmlleekiangleekiangWed, 13 Aug 2008 18:28:00 GMThttp://m.tkk7.com/leekiang/archive/2008/08/14/221860.htmlhttp://m.tkk7.com/leekiang/comments/221860.htmlhttp://m.tkk7.com/leekiang/archive/2008/08/14/221860.html#Feedback0http://m.tkk7.com/leekiang/comments/commentRss/221860.htmlhttp://m.tkk7.com/leekiang/services/trackbacks/221860.html

leekiang 2008-08-14 02:28 鍙戣〃璇勮
]]>
Jquery鍔ㄧ敾http://m.tkk7.com/leekiang/archive/2008/06/20/209539.htmlleekiangleekiangFri, 20 Jun 2008 13:03:00 GMThttp://m.tkk7.com/leekiang/archive/2008/06/20/209539.htmlhttp://m.tkk7.com/leekiang/comments/209539.htmlhttp://m.tkk7.com/leekiang/archive/2008/06/20/209539.html#Feedback0http://m.tkk7.com/leekiang/comments/commentRss/209539.htmlhttp://m.tkk7.com/leekiang/services/trackbacks/209539.htmlhttp://www.lzby.net/boho/blog/?p=206


leekiang 2008-06-20 21:03 鍙戣〃璇勮
]]>
jquery婧愪唬鐮佽В璇葷瑪璁?/title><link>http://m.tkk7.com/leekiang/archive/2008/06/07/206456.html</link><dc:creator>leekiang</dc:creator><author>leekiang</author><pubDate>Fri, 06 Jun 2008 18:39:00 GMT</pubDate><guid>http://m.tkk7.com/leekiang/archive/2008/06/07/206456.html</guid><wfw:comment>http://m.tkk7.com/leekiang/comments/206456.html</wfw:comment><comments>http://m.tkk7.com/leekiang/archive/2008/06/07/206456.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.tkk7.com/leekiang/comments/commentRss/206456.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/leekiang/services/trackbacks/206456.html</trackback:ping><description><![CDATA[ <p>1,鏁翠綋緇撴瀯濡備笅<br /></p> <div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"> <span style="COLOR: #000000">(</span> <span style="COLOR: #0000ff">function</span> <span style="COLOR: #000000">()聽{<br /></span> <span style="COLOR: #008000">//</span> <span style="COLOR: #008000">鈥︹?/span> <span style="COLOR: #008000"> <br /> </span> <span style="COLOR: #000000">})();</span> </div>絎竴瀵規(guī)嫭鍙烽噷鏄竴涓尶鍚嶅嚱鏁幫紝絎竴瀵規(guī)嫭鍙瘋〃紺烘墽琛岃鍑芥暟銆?br />娉? js鐨勫尶鍚嶅嚱鏁版ā寮徛犅?<a >http://www.hedgerwow.com/360/dhtml/js-anonymous-function-patterns.html</a><br />闈炲尶鍚嶅嚱鏁扮殑綾諱技鍐欐硶濡備笅<br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #000000">(聽</span><span style="COLOR: #0000ff">function</span><span style="COLOR: #000000">聽test(){alert('test');})();</span></div>鎵鏈夌殑jquery浠g爜閮芥斁鍦ㄨ鍖垮悕鍑芥暟閲岋紝閬垮厤浜嗗懡鍚嶅啿紿併備絾鏈変袱涓鍗曠嫭澶勭悊:'jQuery'鍜?$'<br /><br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽Map聽over聽jQuery聽in聽case聽of聽overwrite</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000">聽_jQuery聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽window.jQuery,<br /></span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽Map聽over聽the聽$聽in聽case聽of聽overwrite</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #000000">聽聽聽聽_$聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽window.$;<br /><br /></span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000">聽jQuery聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽window.jQuery聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽window.$聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">function</span><span style="COLOR: #000000">(聽selector,聽context聽)聽{<br />聽聽聽聽</span><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽The聽jQuery聽object聽is聽actually聽just聽the聽init聽constructor聽'enhanced'</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #000000">聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽</span><span style="COLOR: #0000ff">new</span><span style="COLOR: #000000">聽jQuery.fn.init(聽selector,聽context聽);<br />};</span></div><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #000000">noConflict:聽</span><span style="COLOR: #0000ff">function</span><span style="COLOR: #000000">(聽deep聽)聽{<br />聽聽聽聽聽聽聽聽window.$聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽_$;<br /><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">聽(聽deep聽)<br />聽聽聽聽聽聽聽聽聽聽聽聽window.jQuery聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽_jQuery;<br /><br />聽聽聽聽聽聽聽聽</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">聽jQuery;<br />聽聽聽聽},</span></div>鍋囧娌℃湁鎵цnoConflict,鍒欏師鏉ュ畾涔夌殑$鎴杍Query(濡傛灉瀹氫箟浜嗙殑璇?浼?xì)琚竴涓柊鍑芥暟瑕嗙洊錛屽彧鍦ㄥ唴閮ㄧ暀涓涓師鏉ョ殑寮曠敤(鍚嶅彨_$鎴朹jQuery)銆?br />濡傛灉瑕佸吋瀹瑰師鏉ョ殑$,鍒欐墽琛宩Query.noConflict(),鐒跺悗鍙兘鐢╦Query鐨勫啓娉?<br />鏋佺鎯呭喌:"jQuery"涔熻鍗犵敤浜嗭紝鍙堣鍏煎錛岄偅涔堟墽琛寁ar myJQ =jQuery.noConflict(true),浠ュ悗鍏ㄧ敤myJQ鐨勫啓娉曘?br />娉ㄦ剰:榪欐椂jquery.js瑕佹斁鍦ㄥ叾浠杍s鐨勫悗闈€?br />2錛?br />聽瀹氫箟jQuery鐨勬瀯閫犲拰鍘熷瀷鍑芥暟錛岃繖涓繃紼嬪悓鏃跺畾涔変簡prototype鐨勫埆鍚嶄負(fù)fn:jQuery.prototype=jQuery.fn銆?jQuery瀵硅薄鐨勫師鍨媝rototype鍖呮嫭浜嗚澶氱殑鏍稿績鏂規(guī)硶鍜屽睘鎬э細(xì)<br />init<br />jquery 褰撳墠鐨勭増鏈彿<br />size 榪斿洖浜唋ength灞炴?br />length<br />get<br />each<br />... <br />瀹氫箟瀹屼簡浠ュ悗蹇呴』鍐欎互涓嬩唬鐮侊紝涓嶆槑鐧?br /><div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><span style="COLOR: #008000">//</span><span style="COLOR: #008000">聽Give聽the聽init聽function聽the聽jQuery聽prototype聽for聽later聽instantiation(鏅氬垵濮嬪寲?)</span><span style="COLOR: #008000"><br /></span><span style="COLOR: #000000">jQuery.fn.init.prototype聽</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">聽jQuery.fn;</span></div>瑙?a >http://bbs.blueidea.com/thread-2843388-1-1.html</a><br />jQuery.prototype.init( selector, context )鏄痡Query瀵硅薄鐨勪竴涓垚鍛樺嚱鏁?浣嗘槸鍦╦Query鏋勯犲嚱鏁頒腑鎬繪槸浼?xì)鎵ц杩欎釜鍑芥?鎵浠ヨ"瀹冩槸鍔犲己鐨勬瀯閫犲嚱鏁?<font color="#008000">init聽constructor聽'enhanced')</font>銆傚洜涓哄湪鎵ц鏋勯犲嚱鏁癹Query 鏃舵繪槸浼?xì)鎵ц瀹冦?榪欎篃鏄緢澶氭鏋剁殑鍏稿瀷鍋氭硶銆?br />jQuery鏈?涓韓浠斤紝綾伙紝瀵硅薄錛屽嚱鏁幫紙鏋勯犲嚱鏁幫級銆?br />濡傛灉find鏄璞$殑鏂規(guī)硶錛屽嵆綾諱技浜?jQuery.find=function(){}<br />閭d箞灝卞簲璇ヤ嬌鐢╦Query.find();<br /><br />濡傛灉find鏄被鐨勬垚鍛樺嚱鏁幫紝鍗崇被浼間簬 jQuery.prototype.find=function(){}<br />閭d箞蹇呴』閫氳繃jQuery()榪斿洖jQuery瀹炰緥錛屽啀璋冪敤find鏂規(guī)硶錛屽嵆jQuery().find()銆?br /><br />8,jQuery婧愮爜瑙h---鎵ц榪囩▼鍒嗘瀽<br />http://hi.baidu.com/zhuguoneng/blog/item/3d07e9d667e9482b06088b4c.html<img src ="http://m.tkk7.com/leekiang/aggbug/206456.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/leekiang/" target="_blank">leekiang</a> 2008-06-07 02:39 <a href="http://m.tkk7.com/leekiang/archive/2008/06/07/206456.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>jquery鐨刟jax鐩稿叧絎旇http://m.tkk7.com/leekiang/archive/2008/05/27/203347.htmlleekiangleekiangTue, 27 May 2008 14:48:00 GMThttp://m.tkk7.com/leekiang/archive/2008/05/27/203347.htmlhttp://m.tkk7.com/leekiang/comments/203347.htmlhttp://m.tkk7.com/leekiang/archive/2008/05/27/203347.html#Feedback0http://m.tkk7.com/leekiang/comments/commentRss/203347.htmlhttp://m.tkk7.com/leekiang/services/trackbacks/203347.html jquery涓瑼JAX鐨勫茍鍙戞墽琛岄棶棰?/span>
鍏充簬ajax鐨勫簲鐢紝寮傛騫跺彂錛屽鑷寸殑闂


http://m.tkk7.com/emu/archive/2005/11/22/20888.html
CACHE
濡傛灉浣跨敤xmlhttp鎺т歡錛屽湪鍙戣搗http璇鋒眰鐨勬椂鍊橧E浼?xì)鍖呭姙cache絳栫暐錛屽緢澶氭椂鍊欐洿鏂頒簡鏁版嵁鍗存棤娉曡幏寰楁洿鏂板悗鐨勬暟鎹備竴寮濮嬭瘯鍥劇敤浼犵粺鏂瑰紡鍦║RL鍚庨潰鍔犻殢鏈烘暟鏉ュ己鍒舵洿鏂幫紝浣嗘槸IE浠嶇劧璺濅笉鍙戝嚭鏂扮殑璇鋒眰銆?br />

涓涓В鍐蟲柟娉曟槸鍦ㄥ悗鍙板啓expires: 0鎴栬呭叾浠栫殑紱佹鍓嶅彴cache鐨勫ご錛屼絾鏄繖鏍峰湪鏁版嵁娌℃湁鏇存柊鐨勬椂鍊欏張浼?xì)甯︽潵涓嶅繀瑕佺殑鏈嶅姟鍣ㄥ帇鍔涖佸搷搴斿歡榪熷拰甯﹀嫻垂銆?br />涓涓◢寰ソ涓鐐圭殑瑙e喅鏂規(guī)硶鏄紝鍓嶅彴鍦ㄦ彁浜ゆ暟鎹互鍚庯紝闇瑕佸己鍒舵洿鏂版暟鎹殑鏃跺欙細(xì)

xmlhttp.setRequestHeader("If-Modified-Since","0");




leekiang 2008-05-27 22:48 鍙戣〃璇勮
]]>
jquery鎻掍歡寮鍙?/title><link>http://m.tkk7.com/leekiang/archive/2008/05/08/199214.html</link><dc:creator>leekiang</dc:creator><author>leekiang</author><pubDate>Thu, 08 May 2008 05:19:00 GMT</pubDate><guid>http://m.tkk7.com/leekiang/archive/2008/05/08/199214.html</guid><wfw:comment>http://m.tkk7.com/leekiang/comments/199214.html</wfw:comment><comments>http://m.tkk7.com/leekiang/archive/2008/05/08/199214.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/leekiang/comments/commentRss/199214.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/leekiang/services/trackbacks/199214.html</trackback:ping><description><![CDATA[1錛宩query鎻掍歡寮鍙戞ā寮?<br /><a >http://www.learningjquery.com/2007/10/a-plugin-development-pattern</a><br />There are a few requirements that I feel this pattern handles nicely: <br />(1)銆丆laim only a single name in the jQuery namespace <br />(2)銆丄ccept an options argument to control plugin behavior <br />(3銆丳rovide public access to default plugin settings <br />(4銆丳rovide public access to secondary functions (as applicable) <br />(5銆並eep private functions private <br />(6銆丼upport the Metadata Plugin<br />(7,鏃犺浣曟椂鍊欙紝褰撲綘鐨勪唬鐮佸嚭鐜癳ach鏃訛紝浣犲簲璇ラ噸鍐欎唬鐮佹潵鏋勯犱竴涓彃浠?br /><br />2,jquery婧愮爜鍒濇鐮旂┒(鎻掍歡鎵╁睍鏈哄埗)<br /><a >http://hi.baidu.com/uniquejava/blog/item/d55a2e12140f6953f819b821.html</a><br /><br />3,浼犲叆鍥炶皟鍑芥暟鐨勪竴縐嶅啓娉曪紝涓嶇煡鍙湁鏇村ソ鐨?br />聽聽 浼犲弬鏃剁殑鍐欐硶: callback:'test()'<br />聽聽 璋冪敤鏃剁殑鍐欐硶:<br />聽聽聽 if(options.callback) eval(options.callback);<br />聽 鏉ユ簮 <a >http://www.heartstringz.net/blog/posts/view/jquery-countdown-plugin</a><br /><br />4錛?function($){<br />聽$.fn.extend({<br />聽聽聽聽聽聽聽 聽plusin:function(opt,callback){<br />聽聽聽return this;<br />聽聽聽聽聽聽聽 聽}<br />聽})<br />})(jQuery);<br />聽<br />(function($){<br />聽$.fn.plusin = function(opt,callback){<br />聽聽return this;<br />聽}<br />})(jQuery);<br />璇烽棶榪欎袱縐嶆柟寮忔湁浠涔堝尯鍒?<br /><span id="span_13138">灝辮繖縐嶆儏鍐佃岃█錛屾槸娌℃湁鍖哄埆銆?<br />褰撶劧extend鏈夊涓噸杞姐?br /><a >http://news.cnblogs.com/group/topic/2640/</a></span><img src ="http://m.tkk7.com/leekiang/aggbug/199214.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/leekiang/" target="_blank">leekiang</a> 2008-05-08 13:19 <a href="http://m.tkk7.com/leekiang/archive/2008/05/08/199214.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>寰堟湁鐢ㄧ殑jquery鎻掍歡http://m.tkk7.com/leekiang/archive/2008/05/07/198964.htmlleekiangleekiangWed, 07 May 2008 06:36:00 GMThttp://m.tkk7.com/leekiang/archive/2008/05/07/198964.htmlhttp://m.tkk7.com/leekiang/comments/198964.htmlhttp://m.tkk7.com/leekiang/archive/2008/05/07/198964.html#Feedback0http://m.tkk7.com/leekiang/comments/commentRss/198964.htmlhttp://m.tkk7.com/leekiang/services/trackbacks/198964.htmlhttp://plugins.jquery.com/project/bgiframe
suggested patch for div on top of flash frame problem in IE7
2,dimensions
http://plugins.jquery.com/project/dimensions
http://brandonaaron.net/docs/dimensions/
3,suggest
http://www.vulgarisoip.com/2007/06/29/jquerysuggest-an-alternative-jquery-based-autocomplete-library/
4,hotkey
$.hotkeys.add('Ctrl+c', function(){ alert('copy anyone?');});
$.hotkeys.remove('Ctrl+c');
http://code.google.com/p/js-hotkeys/
http://plugins.jquery.com/project/clickOrEnter
5,validate
http://jquery.bassistance.de/validate/demo/
鐚啲鐨勮〃鍗曢獙璇佹彃浠?br />http://www.cnblogs.com/wzmaodong
http://www.yhuan.com/formvalidator/userguide.html
6,png fix鎻掍歡
瑙e喅png鍦↖E5,6涓嬬殑鏄劇ず闂
浣跨敤:$("#testdiv").pngFix();聽
http://plugins.jquery.com/project/pngFix
http://jquery.andreaseberhard.de/pngFix/
7,Accordion
搴旇鏄嬌鐢ㄦ渶澶氱殑jquery accordian.鍥炲姣旇緝澶?br />http://bassistance.de/jquery-plugins/jquery-plugin-accordion/
http://groups.google.com/group/jquery-ui/topics聽浣滆呰姹傚洖澶嶅埌榪欓噷
8,hoverIntent
鑳芥牴鎹紶鏍囩殑縐誨嚭縐誨叆閫熷害鍜屾槸鍚﹀仠鐣欒繘琛岀浉搴旂殑澶勭悊
http://cherne.net/brian/resources/jquery.hoverIntent.html
9,slide騫葷伅鏁堟灉
http://www.malsup.com/jquery/cycle/
10,tooltip
http://jquery.bassistance.de/tooltip/demo/
11,ajax Queue
濂藉儚鏄敮鎸佹寜鐓у彂鍑鴻姹傜殑欏哄簭鏉ヤ緷嬈℃墽琛屽洖璋冨嚱鏁?涓嶅鐞嗙殑璇濆揩閫熷彂鍑哄ぇ閲忚姹傛椂鍝嶅簲浼?xì)湄?銆?br />鏌愪漢鐨勮瘎璁?
The uses of this plugin are pretty obscure to most people. This plugin helps you deal with situations where a javascript function is completing before you intend for it, and allowing other functions to execute, while a crucial function somewhere is still processing. Some know what I鈥檓 talking about鈥?this plugin was absolutely crucial for our ajax comments. God bless the authors.
http://plugins.jquery.com/project/ajaxqueue
12,corner
$(this).corner("round");
http://www.methvin.com/jquery/jq-corner-demo.html
13,truncate 鎴柇瀛楃涓?br />http://www.cssrain.cn/demo/truncate-2.2/index.html
14,contextmenu
http://www.trendskitchens.co.nz/jquery/contextmenu/
15,progress bar
http://digitalbush.com/projects/progress-bar-plugin
http://www.jb51.net/article/13993.htm綆鍗?br />16,multiple-file-upload
http://www.fyneworks.com/jquery/multiple-file-upload/
17錛宔asydrag
http://fromvega.com/wordpress/2007/07/14/easydrag-jquery-plugin/
綆媧佺殑鎷栧姩鍔熻兘瀹炵幇銆傛瘮 interface 鎻掍歡鐨勭畝鍗曞緢澶氾紝瀵規(guī)嫋鍔ㄦ湁寰堥珮瑕佹眰鐨勫彲浠ュ弬鑰冭繖涓彃浠舵潵瀹氬埗銆?a >http://space.cnblogs.com/RChen/鏈ㄩ噹鐙愬姝ゆ彃浠剁◢鏈変慨鏀癸紝鍦ㄤ袱綃囧笘瀛愰噷鏈変粙緇嶏紙鎵╁睍浜?jquery 鐨勬彃浠?easy drag , 婕傛誕紿楀彛鎷栧姩鏉傝皥錛堢畫錛?/font> 錛?br />18,jCarouselLite
http://gmarwaha.com/jquery/jcarousellite/index.php
19,chartotable
http://www.hovinne.com/dev/jquery/chartotable/聽濂界帺
20,scroll聽聽 婊氬姩
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html
http://jscroller.markusbordihn.de/example/left/
http://www.kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html
21,calculation璁$畻鎻掍歡
$("input[@name='price1'], input[@name='price2'], input[@name='price3']").sum("keyup", "#totalprice")
榪欎釜鎻掍歡涔熸病鏈夎冭檻鍥涜垗浜斿叆鐨勯棶棰?渚嬪1.3+2.667
http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm

22,jQuery Easing聽聽 緙撳拰?
http://gsgd.co.uk/sandbox/jquery/easing/

23,livequery
鑳借嚜鍔ㄧ粰鍔ㄦ佹坊鍔犵殑鍏冪礌緇戝畾浜嬩歡銆備含涓滃晢鍩庣敤浜嗐?br />http://feiyu.asgard.cn/article_155.html

24,jtemplates
Template engine in JavaScript. Plugin to jQuery.
http://jtemplates.tpython.com/
http://hi.baidu.com/df1019/blog/item/42ba7ffbfea208106c22eb53.html
http://hi.baidu.com/df1019/blog/item/d4cfbd2b380863fce6cd4089.html
http://m.tkk7.com/OneEyeWolf/archive/2008/11/17/240999.html

25,jcache
A client-side caching plugin
http://www.skidvn.com/jcache
http://www.hackeye.com/article/5487/

26,
Jquery Floating Box Plugin
http://www.phpletter.com/Demo/Jquery-Floating-Box-Plugin/

27,clickmenu
聽澶氱駭鑿滃崟 http://p.sohei.org/jquery-plugins/clickmenu

28,
jCarousel 鏄釜闈炲父濂界湅鍙堝ソ鐢ㄧ殑鍐呭婊氬姩鍒囨崲鎻掍歡錛屽彲浠ュ疄鐜版寜搴忔按騫蟲垨鍨傜洿鏂瑰悜鐨勫唴瀹瑰垪琛ㄧ殑鍒囨崲銆?br />

50澶氫釜寮哄ぇ鐨刯Query鎻掍歡搴旂敤瀹炰緥

45涓柊椴滃嚭鐐夌殑jQuery鎻掍歡

37涓洿鍔犲嚭鑹茬殑jQuery鎻掍歡



leekiang 2008-05-07 14:36 鍙戣〃璇勮
]]>
jquery鑷姩瀹屾垚http://m.tkk7.com/leekiang/archive/2008/05/07/198957.htmlleekiangleekiangWed, 07 May 2008 06:16:00 GMThttp://m.tkk7.com/leekiang/archive/2008/05/07/198957.htmlhttp://m.tkk7.com/leekiang/comments/198957.htmlhttp://m.tkk7.com/leekiang/archive/2008/05/07/198957.html#Feedback0http://m.tkk7.com/leekiang/comments/commentRss/198957.htmlhttp://m.tkk7.com/leekiang/services/trackbacks/198957.html1,
聽 (1)濡傛灉鐢╧eydown,鐢ㄤ腑鏂囪緭鍏ユ硶鏃跺湪杈撳叆妗嗛噷杈撴眽璇嫾闊崇殑瀛楁瘝灝變細(xì)鏈夋劅鐭?鏁呭彧鑳界敤keyup
聽 (2)鍚庨闂.
聽聽聽聽聽聽 濡備綍鍖哄垎鏄湪涓枃杈撳叆娉曠殑杈撳叆妗嗛噷鐨勫悗閫錛岃繕鏄嚜鍔ㄥ畬鎴愬綍鍏ユ閲岀殑鍚庨錛屼簩鑰呯殑澶勭悊鏄笉涓鏍風(fēng)殑銆?br />聽 (3)紜閿?br />聽聽聽聽聽聽 鍏夋爣鍦╢orm閲屾椂錛屾寜紜閿祻瑙堝櫒浼?xì)鑷姩鎻愪氦銆傝屾垜鎯寵鐨勬槸涓鎸夌‘璁ら敭錛岃嚜鍔ㄥ綍鍏ラ変腑鐨勯偅涓欏廣?br />濡備綍鍦ㄦ寜紜閿椂涓嶈form鎴幏榪欎釜浜嬩歡銆傝鍋氭垚閫氱敤鐨勶紝鑰屼笉鏄湪姣忎竴涓猣orm閲屽啓姝匯?br />聽聽 (4)璋冭瘯鏃舵厧鐢╝lert
聽聽聽聽聽 alert鐒跺悗紜畾鏃朵細(xì)鑷姩鎵цblur,浼?xì)濯勫搷鐨勫師鏉ソE嬪簭鐨勬墽琛屾搴?br />聽聽聽聽聽聽聽

2,鎻掍歡
聽(1)http://code.google.com/p/jqac/聽涓嶉敊
聽(2)http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete 寰堝ソ寰堝己澶?br />聽(3)http://www.dyve.net/jquery/?autocomplete聽鏈夐伄鐩杝elect box鍔熻兘
聽(4)http://docs.jquery.com/Plugins/AutoComplete
聽(5)http://mabp.kiev.ua/content/2008/04/08/autocomplete_by_your_own_hands
聽(6)http://www.pengoworks.com/workshop/jquery/autocomplete.htm
聽(7)http://huacn.blogbus.com/logs/19643985.html

嫻嬭瘯榧犳爣浜嬩歡鍜岄敭鐩樹簨浠跺湪IE鍜孎F涓嬬殑鎵ц嬈″簭,鍚屾椂嫻嬭瘯鍦ㄤ腑鏂囪緭鍏ユ硶涓嬬殑鎵ц嬈″簭
<script>
function聽$(id){return聽document.getElementById(id);}
</script>
<input聽onmousedown="$('d').value=$('d').value+'down'"聽onmouseup="$('d').value=$('d').value+'up'"
聽onclick
="$('d').value=$('d').value+'click'"><br>
<input聽onkeydown="$('d').value=$('d').value+'down';"聽onkeyup="$('d').value=$('d').value+'up-'"
聽 onkeypress
="$('d').value=$('d').value+'press';"><br><br><br><br>
<input聽id='d'聽size=100>
浣犱細(xì)鍙戠幇錛屽湪闈炰腑鏂囪緭鍏ユ硶妯″紡涓?IE鍜孎F澶т綋涓婃寜涓嬮潰鐨勯『搴?br />(1)瀵筴ey 鏉ヨ :keydown-->keypress-->keyup
濡傛灉鎸佺畫鎸変綇閿綅,keydown浼?xì)鎸伨l墽琛?
濡傛灉瑕侀樆姝㈡寜閿殑榛樿琛屼負(fù),蹇呴』浣跨敤keypress(鐢╮eturn false),浣嗘寜backspace鏃朵笉琛?鍥犱負(fù)backspace鏃跺彧鎵цkeydown鍜宬eyup,keyup涔嬪墠鍥為鐨勬晥鏋滃凡緇忕敓鏁堜簡銆?br />(2)瀵筸ouse鏉ヨ :mousedown-->mouseup-->click ,鍦↖E涓嬪鏋滃湪涓庢寜涓嬮紶鏍囩殑鐩稿悓鍏冪礌涓婃澗寮鍒欎駭鐢焎lick浜嬩歡,濡傛灉鏉懼紑鏃跺凡緇忕寮鏈鍒濇寜涓嬫椂鐨勫厓绱犱簡錛屽垯涓嶄細(xì)浜х敓click浜嬩歡;浣嗘嵁鎴戣瀵烣F涓嬩笉鏄繖鏍?FF涓嬫棤璁洪紶鏍囨槸鍚﹀湪鏈鍒濈殑鍏冪礌涓婃澗寮錛岄兘浼?xì)漶旂敓click浜嬩歡銆?br />
鍦ㄤ腑鏂囪緭鍏ユ硶妯″紡涓?
(1)FF
ff1.jpgff2.jpg
鍏朵腑downup-up-鏄緭鍏ユ硶鍒囨崲鏃剁殑閿洏浜嬩歡
杈撳叆絎竴涓瓧姣嶆椂浜х敓down-press浜嬩歡,鐒跺悗杈撳叆浠諱綍瀛楁瘝閮戒笉浼?xì)漶旂敓閿洏浜嬩? 鍙湁鎸夌‘璁よ緭鍏ョ殑閿簡錛屼緥濡傛寜space鎴栨槸1,鎵嶄細(xì)鎵цup浜嬩歡,瑙佸彸鍥俱?br />涔熷氨鏄褰曞叆涓嬈′腑鏂囨椂錛屼笉綆′腑闂磋繃紼嬫庝箞鏍鳳紝鏁翠釜鐨勯敭鐩樹簨浠跺彧鏈?涓?down-press-up
(娉?浠ヤ笂璇寸殑閿洏浜嬩歡閮芥槸鎸囧彂鐢熷湪input涓婄殑)
2,IE
IE1.jpgIE2.jpg
鍏朵腑downup-up-涔熸槸杈撳叆娉曞垏鎹㈡椂鐨勯敭鐩樹簨浠?br />鐒跺悗鍦ㄨ緭鍏ユ硶妗嗛噷鐨勬墍鏈夋寜閿兘浜х敓涓瀵筪ownup浜嬩歡,鍖呮嫭鍥為鍜岀‘璁ら兘鏄?br />鏃犺鍏夋爣鍦╥nput榪樻槸鍦ㄨ緭鍏ユ硶妗嗘寜鍥為錛岄兘鏄痙own-up

鐢╯tyle.imeMode濂藉儚鏃犳硶寰楀埌褰撳墠text鐨勮緭鍏ユ硶妯″紡
(http://topic.csdn.net/t/20040908/13/3351801.html)

http://www.hihiyou.com/?p=5
http://realazy.org/blog/2007/10/31/solution-of-keyup-failing-when-ime-is-on/
http://topic.csdn.net/t/20040714/21/3175529.html
http://www.javaeye.com/topic/191555

鍙?IE涓璷npropertychange鏃惰鐢╡vent.propertyName聽聽 ==聽聽 "value"
document.getElementById('tt').attachEvent('onpropertychange',function(e){
聽聽聽聽聽聽聽聽
for(var聽item聽in e){
聽聽聽聽聽聽聽聽聽聽聽聽alert(item
+":"+e[item]);//閬嶅巻鍙湅鍒?/span>propertyName
聽聽聽聽聽聽聽聽}
聽聽聽聽});

聽 鍒ゆ柇琛ㄥ崟閲岀殑鍏冪礌鐨勫兼湁娌℃湁鍙戠敓鍙樺寲:聽 聽聽聽
<script>
聽聽聽聽jQuery(document).ready(
function(){
聽聽聽聽聽聽聽 var聽inputarr聽=document.getElementsByTagName("INPUT");//TEXTAREA,SELECT絳夐兘鍙互榪欐牱鐢?br />聽聽聽聽聽聽聽聽for(var聽i=0;i<inputarr.length;i++){
聽聽聽聽聽聽聽聽inputarr[i].attachEvent('onpropertychange',
function(e){
聽聽聽聽聽聽聽
if(e.propertyName!='value')return;聽聽//涓嶆槸value鏀瑰彉涓嶆墽琛屽悗闈㈢殑鎿嶄綔
聽聽聽聽聽聽聽else{ischanged=true}
聽聽聽聽});
聽聽聽聽}
});
聽聽聽聽
</script>
濂囨殑鏄厛jQuery,鍐峞ach,鍐嶇敤$(this).get(0).attachEvent("onpropertychange",fn); 濂藉儚涓嶅彲浠?
榪樻湁
$("textarea").bind('propertychange',function(e) {
e.preventDefault();
// Your code here
});濂藉儚涔熶笉琛?br />


leekiang 2008-05-07 14:16 鍙戣〃璇勮
]]>
jquery絎旇http://m.tkk7.com/leekiang/archive/2008/04/28/196789.htmlleekiangleekiangMon, 28 Apr 2008 07:58:00 GMThttp://m.tkk7.com/leekiang/archive/2008/04/28/196789.htmlhttp://m.tkk7.com/leekiang/comments/196789.htmlhttp://m.tkk7.com/leekiang/archive/2008/04/28/196789.html#Feedback0http://m.tkk7.com/leekiang/comments/commentRss/196789.htmlhttp://m.tkk7.com/leekiang/services/trackbacks/196789.html1,js鐨勪簨浠跺嚱鏁? click(); click(fn);
聽 鍒嗕袱縐嶏紝涓縐嶆槸緇戝畾浜嬩歡錛屽甫鍙傦紝褰㈠eventName(fn);
聽 涓縐嶆槸瑙﹀彂浜嬩歡,涓嶅甫鍙?褰㈠eventName(),瀹㈡埛瑙﹀彂鎴栬呯▼搴忔ā鎷熻Е鍙戙?br />聽 瑙﹀彂鏃跺寘鎷簡嫻忚鍣ㄧ殑榛樿琛屼負(fù)銆?br />聽 浣嗗彲浠ラ氳繃鍦ㄦ煇涓粦瀹氱殑鍑芥暟涓繑鍥瀎alse鏉ラ槻姝㈣Е鍙戞祻瑙堝櫒鐨勯粯璁よ涓恒?br />聽 鍦╡ventName(fn)鐨勫嚱鏁頒綋鍐咃紝this 鎸囦唬鐨勬槸DOM瀵硅薄鑰岄潪jQuery瀵硅薄.鍙敤$(this)寰楀埌jquery瀵硅薄

2,each(fn);
聽 榪斿洖 'false' 灝嗗仠姝㈠驚鐜?(灝卞儚鍦ㄦ櫘閫氱殑寰幆涓嬌鐢?'break')銆?br />聽 榪斿洖 'true' 璺寵嚦涓嬩竴涓驚鐜?灝卞儚鍦ㄦ櫘閫氱殑寰幆涓嬌鐢?continue')銆?br />聽
3,attr("checked", true)鍜宎ttr("checked", '')鏄悓鏍風(fēng)殑鏁堟灉,浣哸ttr("checked", 'true')涓嶈

4,

鎿嶄綔 radio

var item = $("input[name='items'][checked]").val();

$("input[name='items']").get(1).checked = true;

$("[name='isf'][value='yes']").attr("checked",true);

鎿嶄綔 select

var item = $("select[name='items'] option[selected]").text();

$('#select_id')[0].selectedIndex = 1;


5,灞炴ч夋嫨鍣?br />聽 [attribute]聽聽聽聽聽聽聽 鍖歸厤鍖呭惈緇欏畾灞炴х殑鍏冪礌
聽 [attribute=value]聽 鍖歸厤緇欏畾鐨勫睘鎬ф槸鏌愪釜鐗瑰畾鍊肩殑鍏冪礌
聽 [attribute^=value] 鍖歸厤緇欏畾鐨勫睘鎬ф槸浠ユ煇浜涘煎紑濮嬬殑鍏冪礌
聽 [attribute!=value] 鍖歸厤緇欏畾鐨勫睘鎬ф槸涓嶅寘鍚煇涓壒瀹氬肩殑鍏冪礌
聽 [attribute$=value] 鍖歸厤緇欏畾鐨勫睘鎬ф槸浠ユ煇浜涘肩粨灝劇殑鍏冪礌
聽 [attribute*=value] 鍖歸厤緇欏畾鐨勫睘鎬ф槸浠ュ寘鍚煇浜涘肩殑鍏冪礌
聽 [selector1][selector2][selectorN] 澶嶅悎灞炴ч夋嫨鍣紝闇瑕佸悓鏃舵弧瓚沖涓潯浠舵椂浣跨敤銆?br />聽 渚嬪$("input[id][name$='man']")

6,$("tr").each(function(i){this.style.backgroundColor=['#ccc','#fff'][i%2]})聽
//瀹炵幇琛ㄦ牸鐨勯殧琛屾崲鑹叉晥鏋?/p>

7,$('input').one("click", function(){
聽聽聽聽聽聽聽聽聽聽聽 alert($(this).val());
聽聽聽聽聽聽聽 });
聽 姝や簨浠舵墽琛屼竴嬈″嵆琚垹闄?br />聽
8,$("form input") 鍖歸厤鎵鏈夌殑鍚庝唬鍏冪礌(瀛愬瓙瀛欏瓩)
聽$("form > input")鍖歸厤鎵鏈夌殑瀛愬厓绱?鍙湁鍎垮瓙)
$("div,span,p.myClass")灝嗘瘡涓涓夋嫨鍣ㄥ尮閰嶅埌鐨勫厓绱犲悎騫跺悗涓璧瘋繑鍥?br />
9,disabled鐨勭敤娉?br />浠ヤ笅涓ょ鍐欐硶娌℃湁鍖哄埆,閮借〃紺轟笉鍙敤:
$("#btn").attr('disabled','false')鍜?("#btn").attr('disabled','true')
鍙敤鐨勮瘽瑕佺敤:
$("#btn").removeAttr('disabled');鎴?("#btn").attr('disabled', false);//娉ㄦ剰鏃犲紩鍙?br />
10,mouseout鐨勫鐞?br />http://tangb4c.yo2.cn/archives/632854
http://www.zhangjingwei.com/show-93-1.html
http://bbs.51js.com/thread-70665-1-1.html

11錛宩query澶勭悊琛ㄦ牸
http://blog.blueshop.com.tw/jeff377/archive/2008/02/01/54237.aspx
http://15daysofjquery.com/examples/zebra/

12 jQuery鏋勯犲嚱鏁拌瑙?br />http://hi.baidu.com/xletian/blog/item/30810de92776be3bb90e2d69.html

13,jquery鐨勫竷灞綆$悊鍣╨ayoutManager

14, 娉ㄦ剰鏈夌┖鏍煎拰娌$┖鏍肩殑鍖哄埆

var sel = $("#itemList [issel='true']");//itemList涓嬫墍鏈夊惈鏈塱ssel='true'灞炴х殑瀛愬瓩鍏冪礌.濂藉儚鐢╢ind絳夊埆鐨勬柟寮忛兘瀹炵幇涓嶄簡銆?/p>

var sel = $("#itemList[issel='true']");//鐢╥ssel='true'榪囨護(hù)鍓嶉潰鐨勫厓绱?/p>

15,鍙鐨勫啓娉?/p>

jQuery(":input[name='title']").attr('readonly','readonly')

鎴杍Query(":input[name='title']")[0].readOnly=true


16錛岄噸澶嶅鍒跺悓涓涓猟iv

var tempDiv=jQuery('.cont').eq(0).clone();
jQuery('.cont').eq(jQuery('.cont').length-1).after(tempDiv);

17, id="org.id"鏃惰杞箟:$("#org\\.id").val();

18錛?span style="color: rgb(128, 64, 64);">jQuery鐨剆erialize

鍙敤鏉ヨ幏鍙栬〃鍗曢噷鍏冪礌鐨勫兼嫾鎴愪竴涓猶uery string

19

jquery鐩稿叧鎻掍歡鎴栭」鐩?br />(1)鍥捐〃flot聽 (http://code.google.com/p/flot/)
聽聽聽聽聽聽 jqchart聽聽http://www.reach1to1.com/sandbox/jquery/jqchart/
聽聽聽聽 鐢誨浘drawing聽聽聽聽 http://www.openstudio.fr/Library-for-simple-drawing-with.html


聽聽聽聽聽聽聽



leekiang 2008-04-28 15:58 鍙戣〃璇勮
]]>
jquery妯℃佺獥鍙?/title><link>http://m.tkk7.com/leekiang/archive/2008/03/28/189285.html</link><dc:creator>leekiang</dc:creator><author>leekiang</author><pubDate>Fri, 28 Mar 2008 08:02:00 GMT</pubDate><guid>http://m.tkk7.com/leekiang/archive/2008/03/28/189285.html</guid><wfw:comment>http://m.tkk7.com/leekiang/comments/189285.html</wfw:comment><comments>http://m.tkk7.com/leekiang/archive/2008/03/28/189285.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/leekiang/comments/commentRss/189285.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/leekiang/services/trackbacks/189285.html</trackback:ping><description><![CDATA[http://www.malsup.com/jquery/block/#displaybox<br />http://dev.iceburg.net/jquery/jqModal/<br /><br /><a >http://bbs.blueidea.com/viewthread.php?tid=2844333&extra=&page=1</a><br /><br /><h2><a id="AjaxHolder_ctl01_TitleUrl" ><font size="2">鎵╁睍浜?jquery 鐨勬彃浠?easy drag</font></a></h2><h2><a id="AjaxHolder_ctl01_TitleUrl" ><font size="2">鐢?jQuery 鐨?AJAX 鍔熻兘鍙戠幇鐨勪竴涓敊璇?娉ㄦ剰鐐癸細(xì)HTTP Error 411</font></a></h2><h2><a id="AjaxHolder_ctl01_TitleUrl" ><font style="BACKGROUND-COLOR: #ffffff" color="#000000" size="2">婕傛誕紿楀彛鎷栧姩鏉傝皥錛堢畫錛?/font></a></h2><p><a >http://trentrichardson.com/Impromptu/index.php</a><br /></p><br /><a >http://www.aspstat.com/jbox/demo.htm</a><br /><a >http://www.cnblogs.com/huacn/archive/2007/09/03/jquery_jwindow_js.html</a>聽鏉庡崕欏?br /><h2><a id="AjaxHolder_ctl01_TitleUrl" ><font size="2">鐧懼害絀洪棿鐨刾opup鏁堟灉鍒嗘瀽</font></a></h2><br /><img src ="http://m.tkk7.com/leekiang/aggbug/189285.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/leekiang/" target="_blank">leekiang</a> 2008-03-28 16:02 <a href="http://m.tkk7.com/leekiang/archive/2008/03/28/189285.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>jQuery涓嶢jax(杞?http://m.tkk7.com/leekiang/archive/2008/03/07/184383.htmlleekiangleekiangThu, 06 Mar 2008 18:31:00 GMThttp://m.tkk7.com/leekiang/archive/2008/03/07/184383.htmlhttp://m.tkk7.com/leekiang/comments/184383.htmlhttp://m.tkk7.com/leekiang/archive/2008/03/07/184383.html#Feedback0http://m.tkk7.com/leekiang/comments/commentRss/184383.htmlhttp://m.tkk7.com/leekiang/services/trackbacks/184383.html鍦ㄦ垜鎵鐭ラ亾鐨勪富嫻丣avaScript搴撲腑錛宩Query鎷ユ湁鏈媯掔殑Ajax API銆傛渶綆鍗曠殑Ajax璋冪敤濡傦細(xì)
				jQuery('div#intro').load('/some/fragment.html');

浠g爜浠ET璇鋒眰鏂瑰紡錛屼粠/some/fragment.html鏂囦歡涓幏鍙朒TML鐗囨錛屽茍鎶婄墖孌佃杞藉埌id="intro"鐨刣iv涓?br />
褰? 鎴戠涓嬈$湅鍒拌繖琛屼唬鐮佹椂錛屽嚑涔庡瀹冩病浠涔堝嵃璞°傝繖鐪嬭搗鏉ラ潪甯哥畝媧侊紝浣嗗鏋滀綘鎯崇敤jQuery鍋氫簺鏇村鏉傜殑浜嬫儏錛屾瘮濡傛樉紺篈jax瑁呰澆榪涘害錛岃濡備綍鍋氬憿錛? jQuery涓轟綘鍑嗗浜嗕竴浜涘彲鑷畾涔夌殑浜嬩歡錛坅jaxStart錛宎jaxComplete錛宎jaxError絳夌瓑錛夛紝鏉ュ疄鐜頒綘鎯寵鐨勪唬鐮併傚悓鏃? jQuery涔熸彁渚涗簡騫挎硾鐨勫簳灞侫PI錛屾潵瀹炵幇鏇村鏉傜殑Ajax浜や簰錛?br />

				jQuery.get('/some/script.php', {'name': 'Simon'}, function(data) {
alert('The server said: ' + data);
}); // 浠ET鏂瑰紡閫氳繃/some/script.php?name=Simon鑾峰彇鏁版嵁

jQuery.post('/some/script.php', {'name': 'Simon'}, function(data) {
alert('The server said: ' + data);
}); // 浠OST鏂瑰紡鍚?some/script.php鍙戦佽姹?br />
jQuery.getJSON('/some.json', function(json) {
alert('JSON rocks: ' + json.foo + ' ' + json.bar);
}); // 浠?some.json鎺ユ敹騫惰В鏋愭暟鎹紝鎶婃暟鎹漿鎹㈡垚JSON鏍煎紡

jQuery.getScript('/script.js'); // 浠ET鏂瑰紡鑾峰彇/script.js鑴氭湰騫剁敤eval()鎵ц

http://www.nixsky.com/program/java/2008-02/393.html

閫夊彇鍏冪礌:
jQuery('div.panel')
閫夊彇浜嗘墍鏈塩lass="panel"鐨刣iv
jQuery('p#intro')
閫夊彇浜嗘墍鏈塱d="intro"鐨勬钀?/span>
jQuery('div#content a:visible')
閫夊彇浜唅d="content"鐨刣iv涓墍鏈夊彲瑙佺殑閾炬帴
jQuery('input[@name=email]')
閫夊彇浜嗘墍鏈塶ame="email"鐨勮緭鍏ュ煙
jQuery('table.orders tr:odd')
閫夊彇浜嗙被鍚嶄負(fù)鈥渙rders鈥濈殑琛ㄤ腑鎵鏈夌殑濂囨暟琛?br />
jQuery('a[@href^="http://"]')
閫夊彇浜嗘墍鏈夛紙浠ttp://寮澶寸殑錛夊閮ㄩ摼鎺?/span>
jQuery('p[a]')
閫夊彇浜嗘墍鏈夊寘鍚竴涓垨澶氫釜閾炬帴鐨勬钀?br />

涓婅堪渚嬪瓙涓紝:visible鍜?odd鏄痡Query瀹炵幇鐨勬墿灞?寰堝叿鐗硅壊銆傝屽睘鎬х殑閫夊彇浣跨敤@浣滀負(fù)鏍囪錛?/span>

鍏舵柟寮忓拰XPath涓鏍鳳紝瑕佷紭浜嶤SS2銆?br />

jQuery鐨勮繖濂楅夊彇璇硶鍖呯綏涓囪薄錛屾湁浜涚被浼兼鍒欒〃杈懼紡錛屾兂瀹屽叏娑堝寲鏄渶瑕佽姳涓婁竴孌墊椂闂寸殑銆?/p>$(window.frames["innerIframe"].document).find("a[rel='external']").addClass("external")
.click(function(){window.open(this.href);return false;});});

鍦ㄧ埗紿楀彛涓搷浣?閫変腑IFRAME涓殑鎵鏈夊崟閫夐挳
$(window.frames["iframe1"].document).find("input[@type='radio']").attr("checked","true");

鍦↖FRAME涓搷浣?閫変腑鐖剁獥鍙d腑鐨勬墍鏈夊崟閫夐挳
$(window.parent.document).find("input[@type='radio']").attr("checked","true");

鍙栨秷鍏ㄩ?br />聽 $("input[@type=checkbox][@checked]").each(function(){
聽聽聽聽聽聽聽聽聽聽聽 $(this).attr("checked", '');
聽聽聽聽聽聽聽 });

濡傛灉閫変腑鐨勫彧鏈変竴涓紝鍙栧緱閫変腑鐨勫?br />$("input[@type=checkbox][@checked]").eq(0).val()




leekiang 2008-03-07 02:31 鍙戣〃璇勮
]]>
jquery鍑芥暟http://m.tkk7.com/leekiang/archive/2008/02/16/180151.htmlleekiangleekiangFri, 15 Feb 2008 23:11:00 GMThttp://m.tkk7.com/leekiang/archive/2008/02/16/180151.htmlhttp://m.tkk7.com/leekiang/comments/180151.htmlhttp://m.tkk7.com/leekiang/archive/2008/02/16/180151.html#Feedback0http://m.tkk7.com/leekiang/comments/commentRss/180151.htmlhttp://m.tkk7.com/leekiang/services/trackbacks/180151.html聽 灝嗘寚瀹氱殑鍏冪礌鎻掑叆鍒版煇鍏冪礌鍚庛?br />聽 before(html) before(elem)聽 before(elems)涓庝箣鐩稿弽

2,append(html) append(elem)聽 append(elems)
聽 灝嗘寚瀹氱殑鍏冪礌鎻掑叆鍒版煇鍏冪礌鍐呴儴鐨勬湯灝句綅緗?br />聽 appendTo涓庝箣鐩稿弽,浣嗕技涔庡彧鑳戒嬌鐢╝ppendTo(elem)

3,prepend (html)聽 prepend (elem)聽 prepend (elems)聽聽
聽 灝嗘寚瀹氱殑鍏冪礌鎻掑叆鍒版煇鍏冪礌鍐呴儴鐨勫紑濮嬩綅緗紝娉ㄦ剰涓巃ppend鐨勫尯鍒?br />
4,wrap(htm)
聽 灝嗗尮閰嶅璞″寘鍚湪緇欏嚭鐨刪tml浠g爜鍐?br />
5,next
<script type="text/javascript">
$(document).ready(function() {
聽聽聽 $('#t').find('dd').end().find('dt').click(function() {
聽聽聽聽聽聽聽聽 $(this).next().css("background","#f00");
聽聽聽聽聽聽聽聽
聽聽聽聽 });
});
</script>
聽聽聽 <dl id="t">
聽聽聽 聽聽聽 <dt>鐐硅繖閲屾祴璇?錛?lt;/dt>
聽聽聽 聽聽聽 <dd>1111111111111111</dd>

聽聽聽 聽聽聽 <dt>鐐硅繖閲屾祴璇??</dt>
聽聽聽 聽聽聽 <dd>2222222222222222</dd>
聽聽聽 聽聽聽
聽聽聽 </dl>
聽 http://tzangms.com/blog/programming/984

http://m.tkk7.com/wangxinsh55/archive/2007/06/25/126166.html

6,娣卞害錛岄掑綊寮忕殑 .extend()
鏂扮殑extend()鍏佽浣犳洿娣卞害鐨勫悎騫墮暥濂楀璞°備笅闈㈢殑渚嬪瓙鏄竴涓緢濂界殑璇佹槑銆?br />聽聽聽 // 浠ュ墠鐨?.extend()聽聽
聽聽 jQuery.extend(聽聽
聽聽聽聽 { name: 鈥淛ohn鈥? location: { city: 鈥淏oston鈥?} },聽聽
聽聽聽聽 { last: 鈥淩esig鈥? location: { state: 鈥淢A鈥?} }聽聽
聽聽 );聽聽
聽聽聽 // 緇撴灉:聽聽
聽聽聽 // => { name: 鈥淛ohn鈥? last: 鈥淩esig鈥? location: { state: 鈥淢A鈥?} }
聽 // 鏂扮殑鏇存繁鍏ョ殑 .extend()聽聽
聽聽 jQuery.extend( true,聽聽
聽聽 { name: 鈥淛ohn鈥? location: { city: 鈥淏oston鈥?} },聽聽
聽聽聽聽 { last: 鈥淩esig鈥? location: { state: 鈥淢A鈥?} }聽聽
聽 );聽聽
聽 // 緇撴灉聽聽
聽聽 // => { name: 鈥淛ohn鈥? last: 鈥淩esig鈥?聽聽
聽 //聽聽聽聽聽 location: { city: 鈥淏oston鈥? state: 鈥淢A鈥?} }聽

7,1.2.3鐗堟湰鍜?.2.1鐗堟湰鐨剅emove鏂規(guī)硶鐨勫尯鍒?br />1.2.1鐗堟湰
remove: function(a){
if ( !a || jQuery.filter( a, [this] ).r.length ) {
聽jQuery.removeData( this );
聽this.parentNode.removeChild( this );
}
},
1.2.3鐗堟湰
remove: function( selector ) {
聽聽if ( !selector || jQuery.filter( selector, [ this ] ).r.length ) {
聽聽聽// Prevent memory leaks
聽聽聽jQuery( "*", this ).add(this).each(function(){
聽聽聽聽jQuery.event.remove(this);
聽聽聽聽jQuery.removeData(this);
聽聽聽});
聽聽聽if (this.parentNode)
聽聽聽聽this.parentNode.removeChild( this );
聽聽}
聽}
瑙?a >http://www.blog.edu.cn/user2/50271/archives/2007/1963499.shtml
http://pyrolupus.com/demo/jqremovebug.php
http://dev.jquery.com/changeset/3790

8,聽 extend()浣跨敤璇﹁В(涓嶈冭檻娣卞害鐨別xtend)

$.extend(target, prop1, propN)
鐢ㄤ竴涓垨澶氫釜鍏朵粬瀵硅薄鏉ユ墿灞曚竴涓璞?鍗崇涓涓弬鏁?錛岃繑鍥炶繖涓渶鍒濈殑銆佸茍涓旇淇敼榪囩殑瀵硅薄銆傝繖鏄畝鍗曠殑瀹炵幇緇ф壙鐨勪竴澶ф柟娉?
  • target (Object): 瑕佹墿灞曠殑瀵硅薄
  • prop1 (Object): 瑕佷笌絎竴涓璞″悎騫剁殑瀵硅薄
  • propN (Object): (鍙? 鏇村瑕佷笌絎竴涓璞″悎騫剁殑瀵硅薄

鍚堝茍defaults鍜宱ptions, 浣嗕笉淇敼defaults錛岃繑鍥炲悎騫跺悗鐨勫璞?br />var defaults = { validate: false, limit: 5, name: "foo" };
var options = { validate: true, name: "bar" };
var settings = jQuery.extend({}, defaults, options);
緇撴灉 :settings == { validate: true, limit: 5, name: "bar" },defaults娌℃湁琚慨鏀?/font>



leekiang 2008-02-16 07:11 鍙戣〃璇勮
]]>
jquery絎旇http://m.tkk7.com/leekiang/archive/2008/02/16/180149.htmlleekiangleekiangFri, 15 Feb 2008 21:33:00 GMThttp://m.tkk7.com/leekiang/archive/2008/02/16/180149.htmlhttp://m.tkk7.com/leekiang/comments/180149.htmlhttp://m.tkk7.com/leekiang/archive/2008/02/16/180149.html#Feedback0http://m.tkk7.com/leekiang/comments/commentRss/180149.htmlhttp://m.tkk7.com/leekiang/services/trackbacks/180149.html聽 JQuery瀵硅薄鎵嶈兘浣跨敤JQuery瀹氫箟鐨勬柟娉曪紱DOM瀵硅薄鎵嶈兘浣跨敤DOM瀵硅薄鐨勬柟娉曪紱浜岃呬笉鍙互娣鋒穯銆?br />聽 DOM瀵硅薄閫氳繃$鎿嶄綔鍒欏彲浠ヨ漿鎴怞Query瀵硅薄銆備緥濡?
聽 $(document.getElementById("msg"))
聽 JQuery瀵硅薄杞垚DOM瀵硅薄鍒欒緝澶嶆潅涓浜涖傜敱浜嶫Query瀵硅薄鏈韓涔熸槸闆嗗悎錛屾墍浠ュ繀欏婚氳繃绱㈠紩鐨勬柟寮忔潵杞垚DOM瀵硅薄銆備緥濡傦細(xì)
聽 $("#msg")[0]
$(
"div").eq(1)[0]
$(
"div").get(0)
$(
"td")[5]

2,JQuery鐨刧et鏂規(guī)硶鍜宔q鏂規(guī)硶鐨勫尯鍒?br />聽 eq榪斿洖鐨勬槸jquery瀵硅薄錛?br />聽 get(n)鍜岀儲寮曡繑鍥炵殑鏄痙om鍏冪礌瀵硅薄銆?br />聽 $("div").eq(2).html();聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 //璋冪敤jquery瀵硅薄鐨勬柟娉?/span>
$("div").get(2).innerHTML;聽聽聽 //璋冪敤dom鏂規(guī)硶

3,鍦ㄤ簨浠跺鐞嗙▼搴忎腑濡備綍寰楀埌浜嬩歡鐨勫彂鍑鴻?br />
鍦ㄤ簨浠跺鐞嗙▼搴忎腑鍙互鐢蟲槑涓涓猠vent瀵硅薄鐨勬柟寮忔潵鎶撳彇浜嬩歡鐨勫彂鍑鴻呫?br />
$(document).ready(function(){
聽聽聽聽聽聽聽$(
"a.week").click(function(event){
聽聽聽聽聽聽聽聽聽聽var聽uri聽
="cWtc.do?";
聽聽聽聽聽聽聽聽聽聽var聽params聽
="action=blankWtc&wd="+聽$(event.target).text();
聽聽聽聽聽聽聽聽聽聽window.location.href
=uri聽+聽params;聽聽聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽});聽聽聽聽聽聽
});聽

4錛孞avaScript鍙嫢鏈夊崟涓鐨勩佸叏灞鐨勫悕縐扮┖闂達(dá)紙鍗硍indow瀵硅薄錛夛紝鑰屽緢澶氱▼搴忓憳錛堜互鍙婁竴浜涘簱錛夋仯鎰忓湴涓轟箣娣誨姞鍚勭涓滆タ銆?br />瑕佺煡閬撳叏灞鍙橀噺鏄瓟楝鹼紒鑱槑鐨勫紑鍙戜漢鍛橈紝浼?xì)鋴社敤绫讳技缁勪欢妯″紡鐨勬妧鏈紝鏉ュ敖鍔涘噺灝戝叏灞瀵硅薄鐨勬暟閲忋?br />jQuery浠呭悜鍏ㄥ眬鍚嶇О絀洪棿寮曞叆涓涓爣璁幫細(xì)jQuery鍑芥暟/瀵硅薄銆傚叾浣欑殑瑕佷箞鏄痡Query鐨勭洿鎺ュ睘鎬э紝瑕佷箞灝辨槸璋冪敤jQuery鍑芥暟鎵榪斿洖鐨勫璞$殑鏂規(guī)硶銆?br />5,涓や釜select 錛岄兘鏄閫夌殑錛岃姹備竴涓寜閽紝鐐瑰嚮鏃跺皢list1涓墍鏈夐変腑鐨勯」澶嶅埗鍒發(fā)ist2涓紝鑰屼笖鍦╨ist2涓凡緇忓瓨鍦ㄧ殑欏瑰氨涓嶅啀娣誨姞
http://www.javaeye.com/topic/191788

function聽copy_onclick(){聽聽
聽$("#list1聽option:selected").each(function聽()聽{聽聽
聽聽$(document.createElement("option"))聽聽
.attr("value",$(this).val())聽聽
聽.text($(this).val())聽聽
聽.appendTo('#list2:not(:has(option[value=\''+$(this).val()+'\']))');聽聽
聽聽});聽聽聽}聽聽


6錛?br />http://space.flash8.net/space/?18713/action_viewspace_itemid_328089.html
http://hi.baidu.com/yandavid/blog/item/9f64c033dc623b40ac4b5fda.html
http://www.cssrain.cn/article.asp?id=235
http://www.shineblog.com/user6/mprogram/archives/2008/937200.shtml 妗嗗鐞?br />
John Resig 鐨勪富欏?a >http://ejohn.org/
Mike Hostetler鐨?a >http://amountaintop.com/blog/mike


leekiang 2008-02-16 05:33 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 91精品国产亚洲爽啪在线影院| 亚洲国产人成精品| 亚洲第一精品福利| 亚洲日本一区二区一本一道 | 产传媒61国产免费| 亚洲av成人一区二区三区在线观看 | 国产l精品国产亚洲区在线观看| 中国黄色免费网站| 亚洲va无码手机在线电影| 国色精品va在线观看免费视频 | 亚洲剧情在线观看| 无码人妻精品一二三区免费| 亚洲色无码专区一区| 中文字幕不卡免费高清视频| 中文字幕在亚洲第一在线| 国产乱子伦精品免费视频| 久久夜色精品国产亚洲AV动态图| 午夜精品免费在线观看| 亚洲成av人片在线看片| 免费看a级黄色片| 人体大胆做受免费视频| 亚洲va中文字幕无码久久不卡| 性色午夜视频免费男人的天堂| 亚洲制服丝袜在线播放| 四虎影库久免费视频| 国产在线精品免费aaa片| 亚洲欧洲视频在线观看| 无码精品国产一区二区三区免费 | 亚洲国产高清视频| 免费无码A片一区二三区| 香蕉视频在线观看免费| 亚洲AV中文无码乱人伦下载| 中文字幕无码视频手机免费看| 免费无码又爽又黄又刺激网站| 亚洲AV无码乱码国产麻豆穿越| 猫咪社区免费资源在线观看| 又硬又粗又长又爽免费看| 亚洲高清资源在线观看| 四虎影视永久免费视频观看| 日韩精品在线免费观看| 亚洲av无码片vr一区二区三区|