微信小程序識別當前小程序的版本,開發版、體驗版、線上版(附源碼)

envVersion: ‘develop’, //開發版web envVersion: ‘trial’, //體驗版小程序 envVersion: ‘release’, //正式版svg 核心代碼:函數 console.log('envVersion',__wxConfig.envVersion); 經過 __wxConfig.envVersion 能判斷用戶所在的小程序版本測試 打印結果:cod
相關文章
相關標籤/搜索