Skip to main content

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

IdentifierDescription
WEBIndicates that it is currently in a web browser runtime environment, corresponding to MP
PCWEBA sub-scenario of WEB, indicating that it is currently in a large-screen desktop browser environment
MOBILEWEBA sub-scenario of WEB, indicating that it is currently in a small-screen mobile browser environment
MOBILEIndicates that it is currently in a mobile environment, including h5 and Mini Program scenarios
MPIndicates that it is currently a WeChat Mini Program, corresponding to WEB