childComponent组件child-component.vue:
回退
入口js文件:
import Vue from 'vue';
import childComponent from './child-component.vue';
var vm = new Vue({
el: '#app',
data:{
name:'laoqiren'
},
components:{
childComponent
}
});
index.html:
浏览器报错:
Uncaught TypeError: Cannot read property 'indexOf' of undefined
请问这是怎么回事呢?谢谢
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
demo 不谢 https://github.com/TIGERB/eas...