1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| let app = getApp(); Page({ data: { systemInfo:null, }, onLoad: function() { let that = this; app.getSystemInfo(function(systemInfo) { that.setData({ systemInfo: systemInfo, }); }); console.info(that.data.systemInfo); }, change(e) { console.info('我移动到第'+(e.detail.current+1)+'张图了'); }, });
|