node.js学习记录:语法

2019/06/10

语法

const { a } = b;语法意思

这个语法相当于const a = b.a;。例如路由中使用的const { router, controller } = app;后面直接用router表示app.router





github: https://github.com/Hikiy
作者:Hiki
创建日期:2019.06.10
更新日期:2019.06.10

(转载本站文章请注明作者和出处 Hiki

Post Directory