props: ['item'],computed: {
coinPrice () { return this.item.currentPrice.toFixed(2)
}
}这里报this.item.currentPrice undefined,查了加载顺讯,props在computed之前,为什么会报undefined?
值可以出来,先报undefined后在出来
POPMUISE
白衣染霜花
江户川乱折腾
随时随地看视频慕课网APP
相关分类