åå¿è åãã®æ¬ã¨ãã ã¨ãã¤ãã³ãã jQuery ãªãã¸ã§ã¯ãã®å¾ã«ç´æ¥æå®ããã $('.foo').click(); ã®ãããªæ¸ãæ¹ã§èª¬æããã¦ããå ´åãå¤ããã©ãå°ãè¤éãªãã¨ããããã¨ããã¨ããã ã¨å°ããã¨ãåºã¦ãã¾ãããããªã¨ãã«ä¾¿å©ãªã®ã on() ã使ã£ãã¤ãã³ãè¨å®ã§ãã on() ã²ã¨ã¤ã§ bind() live() delegate() ã表ãã jQuery 1.7 ã§ãbind() live() delegate() ããã¹ã¦ on() ã«çµ±åãããããã§ãã ã¤ã¾ã on() ã®æ¸ãæ¹ã«ãã£ã¦ã3 ãã¿ã¼ã³ã®ä½¿ãæ¹ãã§ããã¨ãããã¨ã§ãã .foo ã¨ããè¦ç´ ãã¯ãªãã¯ãããä½ãããã¨ããä¾ã§ãã¤ãã³ãã®è¨å®ã¨åé¤ã®æ¹æ³ãããããæ¸ãã¦ã¿ã¾ãã bind() $('.foo').bind('click', function(){...}); 㯠$('.foo')
{{#tags}}- {{label}}
{{/tags}}