我有以下内容:
bidAmount: {
amount: 0
},
userToken: {
token: null
},
this.$http.post('/place-bet', this.bidAmount, function(response) {
alert(response);
});
我如何同时发送this.bidAmount
和this.userToken
我已经尝试过了,但是它没有正确发送:
this.$http.post('/place-bet', [this.userToken, this.bidAmount], function(response) {
alert(response);
});