Weex 環(huán)境變量

2023-12-26 16:37 更新

Weex 提供 WXEnvironment 用來獲取 Weex 運(yùn)行的環(huán)境變量,Rax 頁面可以通過 WXEnvironment 訪問。 提供字段如下:

  • platform (String) Current running platform, could be "Android", "iOS" or "Web".
  • weexVersion (String) The version of Weex SDK.
  • appName (String) Mobile app name or browser name.
  • appVersion (String) The version of current app.
  • osName (String) The OS name, could be "Android" or "iOS".
  • osVersion (String) The version of current OS.
  • deviceModel (String) Mobile phone device model. (native only)
  • deviceWidth (Number) Screen resolution width.
  • deviceHeight (Number) Screen resolution height.

Rax 環(huán)境中的全局變量 Weex 在 WeexSDK 0.15 版本之后提供


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號