微信開發文檔提供監聽 當前得設備,通過
//方法 1
const curPhone = wx.getSystemInfo();//獲取當前得設備 console.log(curPhone)
//方法 2
const res = wx.getSystemInfoSync();
console.log(res)//res對象中對應得具體屬性值 可參考 微信開發者文檔
微信開發文檔提供監聽 當前得設備,通過
//方法 1
const curPhone = wx.getSystemInfo();//獲取當前得設備 console.log(curPhone)
//方法 2
const res = wx.getSystemInfoSync();
console.log(res)//res對象中對應得具體屬性值 可參考 微信開發者文檔
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。