接着你的写哈:
第一个:this.setData({
personInfo:createdAt
})
第二个:
<view class="user-motto" wx:for="{{personInfo}}" wx:for-item="list" wx:for-index="idx" >
<view class="user-motto">{{list.name}}</view>
<view class="user-motto">{{list.objectId}}</view>
</view>
前提:
1、’bmob2以后 注册换成
var Bmob = require('../../utils/Bmob-2.2.0.min.js');
Bmob.initialize("你的Secret Key", "你的API 安全码");//仔细看,安全码去bmob后台:设置--》安全验证去找
2、data集合加上返回变量
Page({
data: {
personInfo: null,
.....
}})