<div class="layout-right-top">
<h3>輸入數(shù)據(jù)維度:{{message}}</h3>
<h3 style="margin-top: 20px;">輸出數(shù)據(jù)維度:23</h3></div>#其中data中有數(shù)據(jù)
data:function (){
return{
message:'hello'
}}但是這樣子渲染不出來message,是空的?但是如果改成input框,使用v-model綁定又可以渲染出來?什么原因?<div class="layout-right-top">
<input v-model="message">輸入數(shù)據(jù)維度:{{message}}</input>
<h3 style="margin-top: 20px;">輸出數(shù)據(jù)維度:23</h3></div>
添加回答
舉報
0/150
提交
取消