首页 > 微信 > 详细

微信小程序 getSystemInfoSync

时间:2019-12-23 18:36:55      阅读:189      评论:0      收藏:0      [点我收藏+]

getSystemInfoSync

获取用户设备的相关信息

示例代码:

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

const res = wx.getSystemInfoSync();
console.log(res);
console.log(res.model);  // 设备机型
console.log(res.system);  // 设备系统

微信小程序 getSystemInfoSync

原文:https://www.cnblogs.com/GetcharZp/p/12085237.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!