对webstorm进行如下设置: Preferences > Editor > Code Style > Javascript > Punctuation: 改成 Don't use改成 single 效果: