微信小程序 getSystemInfoSync

getSystemInfoSync

获取用户设备的相关信息

示例代码:

使用位置:在 JS文件的任意函数中使用

const res = wx.getSystemInfoSync();
console.log(res);
console.log(res.model);  // 设备机型
console.log(res.system);  // 设备系统
posted @   GetcharZp  阅读(1901)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示