Vue Property or method "" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based
时间:2020-07-04 11:13:04
收藏:0
阅读:1077
copyright : {{ corpright }}
main.js
new Vue({
el: ‘#app‘,
data:{
corpright:"wf"
},
methods:{
a:function(){
return ‘afei‘;
}
},
render: h => h(App),
}).$mount(‘#app‘)
刷新页面不显示{{ corpright }}
<script>
export default {
name: ‘hello‘,
data () {
return {
corpright: ‘afei export default‘
}
},
methods: {
}
}
</script>
显示出来了

原文:https://www.cnblogs.com/kala00k/p/13234194.html
评论(0)