:wxref:`小程序 API 全局对象(wx) ` ===================================================== .. module:: wx ``wx`` 小程序 API 全局对象,用于承载小程序能力相关 API。具体请参考小程序 :ref:`api` 参考文档。 .. class:: wx.env 小程序环境变量对象 :rtype: Object .. attribute:: wx.env.USER_DATA_PATH 文件系统中的用户目录路径 :rtype: String