我有一个简单的按钮,用于在列表中添加项目:
buy() {
console.log("buy fonction")
this.currentPlayer.buy(this.idxItemBuy)
}
但实际上并没有调用 buy 方法 (而且我不知道什么时候应该使用 $event.target.value)
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号