1.安裝babel插件,重啓sublime編輯器。2.點擊導航欄的‘查看’->‘語法’->‘open all with current extension as..’->‘babel-sublime-master’->‘javascript(babel)’。javascript