ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
1 读取远程数据示例 ``` <script> var _self = this; export default { data() { return { list:[], art:[] } }, onLoad() { _self = this; this.getNews(); }, methods: { getNews:function(){ uni.request({ url:'http://www.api.io/api/v2.blog/index', success:function(res){ _self.list= res.data.data; } }) } } } </script> ``` 2 列表循环数据 ``` <view> <view v-for="(item,index) in list"> {{item.title}}------{{item.category_id}} </view> </view> ``` 3 数组显示 ``` <view> <view> {{art.title}} </view> </view> ```