http的接口在微信小程序上请求不出来数据,是不是需要通过什么来进行转换啊!求解
应该是不用转换什么的,使用开发者工具看一下请求的问题,比如 接口是否可以成功调用给你个调用接口的例子:
uni 接口请求示例
uni.request({
url: url,
method: "POST",
success: (res) => {
console.log(res)
},
});
你也可以使用其他的接口请求方法,比如 ajax , fetch ,axios 等等 其他的