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.
ES5ããFunction.prototype.bindãå ¥ãã¾ãã. ããã«æºãããã®ã¯æ°ã ã®Frameworkã§æä¾ããç¶ãã¦ããã®ã§, ãã¾ã馴æã¿ã®ç¡ãã¯ãªãã®ã§ã¯ãªãã§ãããã. ãã®Function.ptototype.bindã¯å®ã¯ã¨ã¦ãé¢ç½ãã®ã§. çµè«ããè¨ãã°, Function.prototype.bindã¯target functionã®Constructã«å®å ¨ã«ç§»è²ããã®ã§Constructorã®å¼æ°æç¸ãè¡ãã¾ã. ã¾ãConstructor callã«å¯¾ãã¦é åã渡ãapplyå½¢å¼ã®ãã®ã¨ãã£ãapplyConstructorãcallConstructorãbindã使ã£ã¦å®è£ ãããã¨ãã§ãã¾ã. åºæ¬ Function.prototype.bindã¯åºæ¬çã«ã¯thisã¨argumentsã«ç¹å®ã®å¤ãæç¸ããé¢æ°ã§ã. bindã¯ç¬¬ä¸å¼æ°ã«this, 次ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}