可以幫我看一下 我這哪里有問題嗎?
<div?id="root">
????內(nèi)容<input?v-model="content"/>
????評(píng)論人<input?v-model="name"/>
???<div?input?v-model="Alltext"></div>
????</div>
????<script>
??new?Vue({
???el:"#root",
??data:{
??????content:"",
??????name:"",
??????Alltext:"",
??},
??computed:{
???Alltext:function(){
????this.content+this.name
???}
2021-02-03
computed? 需要 return 回去
2020-07-20
謝謝你
2020-07-20
Alltext:function()里面少一個(gè)return