Context information
Current context information is accessed via $w.wedaContext
.
Properties
isEditorMode: boolean
Whether in the Editor Area
platforms: array
Application runtime terminals WEB
| MOBILEWEB
| MOBILE
| PCWEB
| MP
Identifier | Description |
---|---|
WEB | Indicates that it is currently in a web browser runtime environment, corresponding to MP |
PCWEB | A sub-scenario of WEB, indicating that it is currently in a large-screen desktop browser environment |
MOBILEWEB | A sub-scenario of WEB, indicating that it is currently in a small-screen mobile browser environment |
MOBILE | Indicates that it is currently in a mobile environment, including h5 and Mini Program scenarios |
MP | Indicates that it is currently a WeChat Mini Program, corresponding to WEB |