首页 > 学院 > 开发设计 > 正文

小程序tableview效果

2019-11-09 16:30:37
字体:
来源:转载
供稿:网友

.js

Page({	data: {		list: [],	},	onLoad: function () {		console.log('onLoad')		var that = this                               that.setData({			list: /***设置list数据***/,				});.wxml

<view wx:for="{{list}}" style="width:100%">    <image class="image" id="{{index}}" mode="aspectFit" src="{{item.firstpic}}"></image>    <label class="time">{{item.time}}</label>    <label class="title">{{item.title}}</label>    <label class="address">{{item.address}}</label>  </view>


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表