ãã£ã¨æ¥½ãããã³ã³ãµã¼ãã»ã©ã¤ãæ å ±ãã¿ã¤ãã¦ãã·ã§ã¢ãã¦ãè¨é²ãããé³æ¥½å¥½ãã®ããã®ãµã¼ãã¹ã§ãã
ãã£ã¨æ¥½ãããã³ã³ãµã¼ãã»ã©ã¤ãæ å ±ãã¿ã¤ãã¦ãã·ã§ã¢ãã¦ãè¨é²ãããé³æ¥½å¥½ãã®ããã®ãµã¼ãã¹ã§ãã
jQueryã®bindãliveãdelegateã®éãã«ã¤ãã¦ï¼ãã¨æ°API onãoffã¸ã®åç §ãªã³ã¯ï¼Tweet ï¼ï½ã»Ïã»ï½ï¼ã¸ãã¼ãæ¬æ¥2å¼¾ç®ã§ãã ååã¯ã¤ãã³ãã®ãããªã³ã°ã®è©±ãæ¸ãã¾ããããä»åã¯ã¯ãªãã¯ã¤ãã³ãã®è¨å®æ¹æ³ã«ã¤ãã¦ã ãAã¿ã°ãã¯ãªãã¯ãããââï¼funcï¼ãããã ã¨ããè¨å®ãããæ¹æ³ã¯ä»¥ä¸ã®ãããªãã®ãããã¾ããï¼Ver1.6.xæç¹ï¼ ä¸è¬çã«ã¯ãä¸ã«è¡ãã»ã©åªç§ã§ãã ï¼ï¼$('a').click(func); ããã¯æ¬¡ã®bindã®çç¥å½¢ã§ãã ï¼ï¼$('a').bind('click', func); ä»ç»é¢ä¸ã«åå¨ããAã¿ã°èªèº«ã«ãã¯ãªãã¯ã¤ãã³ããè¦ãããã¾ãã ãã以é追å ãããAã¿ã°ã«ã¯å¹ãã¾ããã namespaceãä»ããããclick以å¤ã«ãè¤æ°ã®ã¤ãã³ããåæã«æå®ã§ããç¹ããclick()ããåªç§ã§ãã ï¼ï¼$('a').live
ãã¯ãããããã¾ããã³ã¼ããªã¼ãã£ã³ã°ç¬¬ååã§ãã jQueryã«ã¯ãç¹å®ã®ã¨ã¬ã¡ã³ãã«ã¤ãã³ããå²ãå½ã¦ãã¡ã½ããã¨ãã¦bind,live,delegateãåå¨ãã¾ããä»åã¯ããããã®ã¡ã½ããã®å®è£ ã追ã£ã¦ã¿ããã¨æãã¾ãã 対象 jQuery 1.5.0 ããã¾ã§ã®ã¨ã³ã㪠é åãeach åæåãextend ã»ã¬ã¯ã¿ã渡ããå ´åã®å¦ç ã¯ããã« bind,live,delegateããããã®å ¬å¼ãªãã¡ã¬ã³ã¹ã¯ä»¥ä¸ã§ãã http://api.jquery.com/bind/ http://api.jquery.com/live/ http://api.jquery.com/delegate/ ã¾ããããããã®ã¡ã½ããã®éãã解説ããã¨ã³ããªã¯ä»¥ä¸ã§ã The Difference Between jQuery's .bind(), .live(), and .delegate()
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}