请教前端一个 vue 组件的问题
資深大佬 : ttldco 5
假如说,我的代码是这样的
<script type=”text/javascript” src=”js/[email protected]”></script>
引用的 vue import aaa from ‘@/components/aaa.vue’ new Vue({ el:’#app’,components: {aaa}
后面的就不写了,文件都是在同一级,不管怎么引用,好像一直报错 报这个错误 Uncaught SyntaxError: Unexpected identifier
第一次这样写..没有用脚手架
大佬有話說 (2)