今天学习了SFC,全部通过以下官方介绍,不夹带任何私货。(适合有点经验的新手)
【1.官方介绍】
https://v3.cn.vuejs.org/guide/single-file-component.html#%E4%BB%8B%E7%BB%8D
【2.SFC语法规范】
https://v3.cn.vuejs.org/api/sfc-spec.html#intro
【3.@vue/compiler-sfc鱿鱼西写的介绍+代码】
https://github.com/vuejs/vue-next/tree/master/packages/compiler-sfc