1.0.0 • Published 5 years ago
@wx-mp/mp-proxy v1.0.0
Page({
data: { loading: true, name: '', list: [0, 1, 2, 3, 4] },
onLoad: function () {
createData(this);
this.update();
setInterval(this.update.bind(this), 4000);
},
update() {
this.data.loading = !this.data.loading;
this.data.name = 100 * Math.random();
this.data.list = [1, 3, 4, 5].map(i => (i + Math.random()).toFixed(1));
}
})
<view>loading: {{loading}}</view>
<view>name: {{name}}</view>
<view>list: {{list}}</view>
1.0.0
5 years ago