JavaScriptã«ããã¦é¢æ°ã¨ããã®ã¯Functionãªãã¸ã§ã¯ãã§ãä»ã®ãã«ãã¤ã³ãªãã¸ã§ã¯ãã¨åæ§ã«ãçµã¿è¾¼ã¿ã®ã¡ã½ãããããããããapplyã¨callãããªãã®ã ããã©ããããªæãã«ä½¿ãã func.apply(thisObj,arguments) func.call(thisObj,arg1,arg2,arg3) thisObjã«ã¯ããã®é¢æ°å
ã§ãthisãã¨ãã¦ä½¿ããªãã¸ã§ã¯ããæå®ãããapplyã®ç¬¬äºå¼æ°ã¯argumentsãªãã¸ã§ã¯ããæå®ãããé
åããç¾å¨å®è¡ä¸ã®é¢æ°ã®argumentsãªãã¸ã§ã¯ãã丸ãã¨å¥ã®é¢æ°ã«å¼ã渡ãããã¤ã¾ãå¼æ°ã®é·ããè¯ãããã£ã¦ãªãã¦ã使ããã callã¯ä»£ããã« func.apply(thisObj,[arg1,arg2,arg3]) ã¨æ¸ããã®ã§ãå®ã¯ãããªãããããªããã¨æãã ãããã¯å¤åããµã¤ãã«JavaScriptãæ¸ãä¸ã§
{{#tags}}- {{label}}
{{/tags}}