è¤éãªã¢ããªã±ã¼ã·ã§ã³ã§ã¯ãã®ã³ã°ã ãã¬ã¼ã·ã³ã° ãã¡ããªã¯ã¹ã¨ãã£ããµãã¼ãã®æ©è½ã«ãããé¢æ°ã«ããè² è·ãããã£ã¦ãã¾ãã¾ãããããã®ã³ã¼ããããã¯ã¯ããããã³ã¼ããã¼ã¹ä¸ã§ããããå°ãå¤å½¢ãã¦ç¹°ãè¿ã使ç¨ãããã®ã§ãããããã 横æçé¢å¿äº(cross-cutting concerns) ã¨è¨ãã¾ãã ã¢ã¹ãã¯ãæåããã°ã©ãã³ã° ï¼AOPï¼ã¯ãã¢ã¹ãã¯ãã¨å¼ã°ããã¢ã¸ã¥ã¼ã«å ã«ã³ã¼ããããã¯ãå¼ãå ¥ãã¦ã é¢å¿ã®åé¢ (separation of concerns)ãæå©ããã¾ãã AOPã®å®è£ Phoneã¯ã©ã¹ ^(1) ä¸èªç¶ãªä¾ã ã¨ããã®ã¯æ¿ç¥ã®ä¸ã§ã dial ã¡ã½ãã1ã¤ã使ã£ã¦ç°¡åãªPhoneã¯ã©ã¹ãæ§ç¯ãã¦ã¿ã¾ããã function Phone() {}; Phone.prototype.dial = function (friend) { var start =
{{#tags}}- {{label}}
{{/tags}}