【发布时间】:2016-05-31 08:07:03
【问题描述】:
我有以下几点:
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);
});
【问题讨论】:
标签: vue.js vue-resource