【发布时间】:2019-04-29 21:30:51
【问题描述】:
data() {
return {
unitPrice: 0.00,
periodNum: 0,
//totalPrice
}
},
computed:{
totalPrice: ()=>{
return this.periodNum * this.unitPrice;
}
},
methods:{... change periodNum and unitPrice functions here}
我按照 vue doc 执行此操作:在 periodNum 和 unitPrice 更改时计算 totalPrice,但是在“return”行出现问题标题中的错误
【问题讨论】:
标签: vue.js