Maison > Questions et réponses > le corps du texte
父组件
<father :data="data"></father>
data() {
return {
data: {}
}
}
mounted() {
this.data = {
title: '标题'
}
}
子组件
<son>{{data.title}}<son>
props: {
data: Object,
}
报错: title属性 undefined
大家讲道理2017-07-05 10:40:07
La méthode d'écriture ne pose aucun problème, https://jsfiddle.net/stardew/...