computed两个重要函数
- getter:默认只有getter函数,代码定义如下
computed: {
saleRatio: function () {
return ((this.totalSale - this.afterTotalSale) / this.totalSale)
computed两个重要函数
computed: {
saleRatio: function () {
return ((this.totalSale - this.afterTotalSale) / this.totalSale)