企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
小程序js文件 ~~~ Page({ onLoad: function () { var that = this; wx.request({ url: 'http://127.0.0.1:8000/tp/', method: 'GET', success: function (res) { that.setData({ result: res.data }) } }) } }) ~~~ 小程序wxml文件 ~~~ <!-- wx:for 循环数据 {{已item.}}格式传输 --> <block wx:for-items="{{result}}"> <view style="width:100%; height: 50rpx"></view> <!--index默认为下标,item为每项--> <text>第{{index}}条数据 {{item.tetle}}</text> <image src='{{item.url}}'></image> </block> ~~~