vue一般使用axios,你也可以使用ajax
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
axios.post('/你的后台api接口', {
变量名: 变量值
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});
```html
```
让后台给接口给你调