开发常见问题
script 格式化问题
通过 command + option + L
格式化代码后,script 可能会出现 indent 的警告,解决方案有两种:
- 关闭 eslint 中的 indent 检查;
- 修改 webstorm 中 indent 设置:
Webstorm => Preferences => Editor => Code Style => HTML => Other
在 do not indent of children
中增加 script 即可
← 用户引导 前端开发各种高端操作 →