uniapp formdate请求

formData.append("a", "1");
formData.append("x", "2");
 为 a=1&x=2
 
uni.request({
          url: ``,
          method: "POST",
          header: {
            "content-type": "application/x-www-form-urlencoded; charset=UTF-8",
          },
          data: "location=xxx,xxx",
          success: (res) => {
            }
          },
        });
posted @ 2024-10-28 14:02  何云泽  阅读(185)  评论(0)    收藏  举报