摘要:
test.js let name1 = 'testName'; function testFunc(){ console.log(name1); } export default { name1, testFunc} 使用 <script> // 导入 import test from '../te 阅读全文
摘要:
组件就是 xx.vue <!-- 第二部分 --> <!-- 以后在这个对象中写咱们之前学的data,methods,watch,computed,生命周期钩子 --> <script> export default { data() { return { name: 'szw' } }, prop 阅读全文