更新时间:2022-10-22 07:38:11
那肯定就是拆成组件了,写了个极简示例,供你参考
https://jsfiddle.net/m8jzrtay/
vue.js - vue用组件插入模板html怎么实现
vue.js - vue组件可以引用一个模板文件吗