闲话不多说了,直接上代码:

		const params = new URLSearchParams();
        params.append('name', 'wangjiawei')
        params.append('age', 18)
        this.$http({
          url: '/wjw/updata/data',
          method: 'post',
          headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
          },
          data: params
        }).then(({ data }) => {
          if (data) {
            this.$message({
              message: data.message,
              type: 'success'
            });
          }
        })

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
  • 2022-01-11
猜你喜欢
  • 2022-12-23
  • 2021-10-07
  • 2021-07-03
相关资源
相似解决方案