Logo

GitLab

Sign in

tutorial / mini-app

  • Back to Group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • mini-app
  • official
  • page
  • API
  • pages
  • get-system-info
  • get-system-info.js
  • 自动登录,及配置文件修改
    15424199
    zhaoxing authored
    2017-08-14 14:07:50 +0800  
    Browse Code ยป
get-system-info.js 251 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Page({
  data: {
    systemInfo: {}
  },
  getSystemInfo: function () {
    var that = this
    wx.getSystemInfo({
      success: function (res) {
        that.setData({
          systemInfo: res
        })
        that.update()
      }
    })
  }
})