微信小程序识别当前小程序的版本,开发版、体验版、线上版

295 阅读1分钟
console.log('版本:', __wxConfig.envVersion);

版本: ‘develop’, //开发版

版本: ‘trial’, //体验版

版本: ‘release’, //正式版