女班长扒开内裤让我们摸视频,麻豆精产国品一二三产区区别免费,鲁一鲁一鲁一鲁一澡,久久国产精品99夜夜嗨,久久午夜无码鲁丝片秋霞

大學生新聞網(wǎng),大學生新聞發(fā)布平臺
大學生新聞網(wǎng)
大學生新聞大學生活校園文學大學生村官
社會實踐活動社會實踐經(jīng)歷社會實踐報告社會實踐總結社會實踐心得
全國排名校友會版軟科排名分類排名本科排名一本排名二本排名專科排名學校地址
求職簡歷職場法則面試技巧職場故事求職招聘大學生就業(yè)
英語學習計算機學習電氣工程機械工程經(jīng)濟管理建筑設計財務會計
申請書證明書檢討書自薦信演講稿心得體會調(diào)查報告讀后感求職信推薦信其它范文

小程序wx.getSystemInfoSync

Object wx.getSystemInfoSync()
wx.getSystemInfo 的同步版本

以 Promise 風格 調(diào)用:支持
小程序插件:支持,需要小程序基礎庫版本不低于 1.9.6
微信 Windows 版:支持
微信 Mac 版:支持
返回值
Object res
屬性    類型    說明    最低版本
brand    string    設備品牌    1.5.0
model    string    設備型號。新機型剛推出一段時間會顯示unknown,微信會盡快進行適配。    
pixelRatio    number    設備像素比    
screenWidth    number    屏幕寬度,單位px    1.1.0
screenHeight    number    屏幕高度,單位px    1.1.0
windowWidth    number    可使用窗口寬度,單位px    
windowHeight    number    可使用窗口高度,單位px    
statusBarHeight    number    狀態(tài)欄的高度,單位px    1.9.0
language    string    微信設置的語言    
version    string    微信版本號    
system    string    操作系統(tǒng)及版本    
platform    string    客戶端平臺    
合法值    說明
ios    iOS微信(包含 iPhone、iPad)
android    Android微信
windows    Windows微信
mac    macOS微信
fontSizeSetting    number    用戶字體大。▎挝籶x)。以微信客戶端「我-設置-通用-字體大小」中的設置為準    1.5.0
SDKVersion    string    客戶端基礎庫版本    1.1.0
benchmarkLevel    number    設備性能等級(僅 Android)。取值為:-2 或 0(該設備無法運行小游戲),-1(性能未知),>=1(設備性能值,該值越高,設備性能越好,目前最高不到50)    1.8.0
albumAuthorized    boolean    允許微信使用相冊的開關(僅 iOS 有效)    2.6.0
cameraAuthorized    boolean    允許微信使用攝像頭的開關    2.6.0
locationAuthorized    boolean    允許微信使用定位的開關    2.6.0
microphoneAuthorized    boolean    允許微信使用麥克風的開關    2.6.0
notificationAuthorized    boolean    允許微信通知的開關    2.6.0
notificationAlertAuthorized    boolean    允許微信通知帶有提醒的開關(僅 iOS 有效)    2.6.0
notificationBadgeAuthorized    boolean    允許微信通知帶有標記的開關(僅 iOS 有效)    2.6.0
notificationSoundAuthorized    boolean    允許微信通知帶有聲音的開關(僅 iOS 有效)    2.6.0
phoneCalendarAuthorized    boolean    允許微信使用日歷的開關    2.19.3
bluetoothEnabled    boolean    藍牙的系統(tǒng)開關    2.6.0
locationEnabled    boolean    地理位置的系統(tǒng)開關    2.6.0
wifiEnabled    boolean    Wi-Fi 的系統(tǒng)開關    2.6.0
safeArea    Object    在豎屏正方向下的安全區(qū)域    2.7.0
結構屬性    類型    說明
left    number    安全區(qū)域左上角橫坐標
right    number    安全區(qū)域右下角橫坐標
top    number    安全區(qū)域左上角縱坐標
bottom    number    安全區(qū)域右下角縱坐標
width    number    安全區(qū)域的寬度,單位邏輯像素
height    number    安全區(qū)域的高度,單位邏輯像素
locationReducedAccuracy    boolean    `true` 表示模糊定位,`false` 表示精確定位,僅 iOS 支持    
theme    string    系統(tǒng)當前主題,取值為`light`或`dark`,全局配置`"darkmode":true`時才能獲取,否則為 undefined (不支持小游戲)    2.11.0
合法值    說明
dark    深色主題
light    淺色主題
host    Object    當前小程序運行的宿主環(huán)境    2.12.3
結構屬性    類型    說明
appId    string    宿主 app 對應的 appId
enableDebug    boolean    是否已打開調(diào)試?赏ㄟ^右上角菜單或 wx.setEnableDebug 打開調(diào)試。    2.15.0
deviceOrientation    string    設備方向    
合法值    說明
portrait    豎屏
landscape    橫屏
示例代碼

wx.getSystemInfo({
  success (res) {
    console.log(res.model)
    console.log(res.pixelRatio)
    console.log(res.windowWidth)
    console.log(res.windowHeight)
    console.log(res.language)
    console.log(res.version)
    console.log(res.platform)
  }
})

try {
  const res = wx.getSystemInfoSync()
  console.log(res.model)
  console.log(res.pixelRatio)
  console.log(res.windowWidth)
  console.log(res.windowHeight)
  console.log(res.language)
  console.log(res.version)
  console.log(res.platform)
} catch (e) {
  // Do something when catch error
}
    作者:大學生新聞網(wǎng)    來源:大學生新聞網(wǎng)
    發(fā)布時間:2025-04-02    閱讀:
    掃一掃 分享悅讀
  • 小程序wx.getSystemInfoAsync
  • 異步獲取系統(tǒng)信息。需要一定的微信客戶端版本支持,在不支持的客戶端上,會使用同步實現(xiàn)來返回。
  • 04-02 關注:0