Mini Program
  • Mini Program
  • Mini Game
  • Official Accounts
  • Open Platform
  • Service Accounts
  • Intelligent Dialogue
Development
Introduction
Design
Operation
Data
Security
Community
School
取消
    Get More
    Find More >
    • Guide
    • Framework
    • Components
    • API
    • Server Side
    • Capabilities
      • Industry
      • Commercial
      • Platform Capabilities
      • Market Services
      • City Services
      • Charge
      • Extended
    • Weixin DevTools
    • Cloud Service
      • Cloud Base
      • WeChat CloudRun
    • Update History
    Development
    Development
    Introduction
    Design
    Operation
    Data
    Security
    中文
    EN
    取消
  • Framework
    • Mini Program configuration
      • Global configuration
      • Page configuration
      • sitemap Configuration
    • Scene value
    • Frame interface
      • Mini Program App
        • App
        • getApp
      • page
        • Page
        • getCurrentPages
      • Custom component
        • Component
        • Behavior
      • modularity
        • require
        • module
        • exports
        • requirePlugin
        • requireMiniProgram
      • Basic function
        • console
          • console.debug
          • console.error
          • console.group
          • console.groupEnd
          • console.info
          • console.log
          • console.warn
        • Timer
          • setTimeout
          • clearTimeout
          • setInterval
          • clearInterval
    • WXML Grammatical reference
      • Data binding
      • List rendering
      • Conditional Rendering
      • template
      • reference
    • WXS Grammatical reference
      • Modular
      • Notes
      • operator
      • sentence
      • Data type
      • Base class library

    # Object wx.env

    The Mini Program environment variable object.

    # String wx.env.USER_DATA_PATH

    The user directory path in the file system.

    The translations are provided by WeChat Translation and are for reference only. In case of any inconsistency and discrepancy between the Chinese version and the English version, the Chinese version shall prevail.Incorrect translation. Tap to report.
    • 关于腾讯
    • 文档中心
    • 辟谣中心
    • 客服中心

    Copyright © 2012-2025 Tencent. All Rights Reserved.

    反馈