Decorators on functions

后端 未结 3 1294
有刺的猬
有刺的猬 2021-01-31 14:31

I see that babel.js decorators (available in \"stage 1\") implement the spec at https://github.com/wycats/javascript-decorators. It appears that decorators are limited to (1) cl

3条回答
  •  清酒与你
    2021-01-31 14:48

    I think the problem is function decorator has not been ES7 draft.

    Of course, you still can implement your function decorator by yourself

提交回复
热议问题