newPromise / js-

0 stars 0 forks source link

数据传递出错 #1

Closed newPromise closed 6 years ago

newPromise commented 6 years ago

使用 props 传递数据的时候,将其声明为 data 数据

newPromise commented 6 years ago

或者

newPromise commented 6 years ago

使用 watch 声明为及本地的数据

watch : { propData : function (val) { this.data = val } }