js的裝飾符 @

原文地址:https://www.jeremyjone.com/666/, 轉載請註明。git js中的裝飾器一直處於提案階段,因此要是用裝飾符@,就須要經過babel進行解析。github 安裝babel的插件 若是 babel < 7.x: 一、安裝npm install --save-dev babel-plugin-transform-decorators-legacy 二、在.babel
相關文章
相關標籤/搜索