This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup>
SFCs,
check out the script setup docs to learn more.
-比如 https://dyhcxfw.bjhgiot.com/static/images/banner.png
https://segmentfault.com/q/1010000042298464
package.js
中声明了"type": "module",
的话,默认全局的js都是ESM的语法,此时CommonJS语法需要显式声明为.cjs
文件
- VS Code + Volar ( and disable Vetur) + TypeScript Vue Plugin (Volar).