小程序获取手机型号
手机型号:{{mobileModel}}手机像素比:{{mobileePixelRatio}}窗口宽度:{{windowWidth}}窗口高度:{{windowHeight}}微信设置的语言:{{language}}微信版本号:{{version}}var app = getApp()Page({data: {mobileModel:'',mobileePixelRatio:'',windowWidth:'',windowHeight:'',language:'',version:''}, onLoad: function () { var that=this;wx.getSystemInfo({success: function(res) {that.setData({mobileModel:res.model,mobileePixelRatio:res.pixelRatio,windowWidth:res.windowWidth,windowHeight:res.windowHeight,language:res.language,version:res.version})}})}})
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

