用wx.request请求数据

console.log(res)打印出来的数据如图

然后在wxml中获取js中request请求到的数据

在js文件中想获取 data.9.7=大器拉链。。。。 直接用res.data[9][7]
在wxml中用item[7]获取
用wx.request请求数据
console.log(res)打印出来的数据如图
然后在wxml中获取js中request请求到的数据
在js文件中想获取 data.9.7=大器拉链。。。。 直接用res.data[9][7]
在wxml中用item[7]获取
本文标题:php中用wx.request 获取的数组以0.1.2.3...
本文链接:https://www.haomeiwen.com/subject/imdnhftx.html
网友评论