qiutianaimeili

js 中的 AOP 及使用

  •  
  •   qiutianaimeili · Apr 19, 2019 · 3233 views
    This topic created in 2585 days ago, the information mentioned may be changed or developed.

    AOP(Aspect Oriented Programming),叫做面向切面编程,旨在降低程序之间的耦合行,属于设计模式中的装饰者模式,如果你希望用 js 写出低耦合,高内聚的代码,可以了解下。

    文章地址: http://www.qiutianaimeili.com/html/page/2019/04/f7eynwtf6n.html

    1 replies    2019-04-19 15:37:46 +08:00
    colorcat
        1
    colorcat  
       Apr 19, 2019
    这不就是 Spring 的 AOP 概念么,感觉平常大家也都在用,比如你的 http intercepter、全局 router 钩子啥的,不过没起个名儿而已。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3079 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 12:07 · PVG 20:07 · LAX 05:07 · JFK 08:07
    ♥ Do have faith in what you're doing.