2009-03-05から1日間の記事一覧

インクリメントサーチで defaultValue をみて検索条件の変更を判定する

(function($j){ $j.incrementSearch = function(callback){ this.exec=callback; this.timer=null; } $j.extend($j.incrementSearch.prototype,{ queue : function(target){ var o=this; if(o.timer)clearTimeout(o.timer); o.timer = setTimeout(function()…

jQuery の each と apply とか

Number or String が Object に変換されるってのはつまり var n = 3 s.apply(n) function s { alert(this) // 3 alert(typeof this) // object } こういうことなんですね。 $.each の落とし穴 - Hig醇P au lait なるほどーつまり each はこんなかんじってこ…