IBM Developer is your one-stop location for getting hands-on training and learning in-demand skills on relevant technologies such as generative AI, data science, AI, and open source.
ç§ã¯ã©ã¡ããã¨ããã¨Prototype.jsã©ã¤ãã©ãªããã使ã£ã¦ããã®ã§ãããæè¿ã¯jQueryå¯ãã«ãªã£ã¦ãã¦ããã©ã°ã¤ã³ãããã¤ãä½ãæ©ä¼ãåºã¦ãã¾ãããä»åã¯èªåãåèã«ãããµã¤ããªã©ãé ¼ãã«jQueryãã©ã°ã¤ã³ä½ææ¹æ³ãã¾ã¨ãã¦ã¿ããã¨æãã¾ãã åèãµã¤ãï¼ãjQuery ãæ±ã: 第 3 å ä¸ç´ã¬ãã«ã® jQuery: ç¬èªã®ãã©ã°ã¤ã³ãä½æãã å 容ã¯ãããããããã¼åãã§ããã以ä¸ã®Webæè¡ãæ±ã£ãä¸é£ã®ããã¥ã¡ã³ã群ãé常ã«ããã«ãªãã¾ãã æè¡ææ¸ä¸è¦§ ãã©ã°ã¤ã³ä½æã®ããã¼ å¥ã«å¼·å¶åãããããã§ã¯ãªãã§ãããjQueryãµã¤ãã§æä½éå®ã£ã¦ã»ããã¨ããè¦åãè¼ãã¦ããã¾ãã ï¼ããã¡ã¤ã«åã¯jquery.ãããªãã®ãã©ã°ã¤ã³åã.jsã¨ããã ä¾ï¼ãjquery.clickablecanvas.js ï¼ãã¡ã½ããã¯jQuery.fnãªãã¸ã§ã¯ãã«ã¢ã¿ãããã
âãã©ã¦ã¶ãã¨ã®ã¤ãã³ãçºçè¦ç´ åå¾ã®éããå¸åãã ããã event.target ã¨ããevent.srcElement ã¨ããã 使ãåããã®é¢åã ãããEvent ã¯ã©ã¹æ¡å¼µãã¦ãé¢æ°ã§æã£ã¦ãã¡ããããã ・・・・・・ã¨ããã®ããä»åã®è¶£æ¨ã§ãã ãããããã®ã½ã¼ã¹ã function getTarget() { return this.srcElement || this.target; } Event.prototype.getTarget = getTarget;ç°¡åã§ããï¼ æå¹ãªæ¹ã®ããããã£ããå¤ãæã£ã¦ãã¡ãããã£ã¦ããæ¹æ³ã§ãã ãã®é¢æ°ã使ãã°ãevent.target ã«å¯¾å¿ãã¦ãªã Internet Explorer ããããevent.srcElement ã«å¯¾å¿ãã¦ãªã Firefox ããããã©ã£ã¡ã«ã対å¿ãã¦ã Operaã»Safariã»Googl
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}