获取微信小程序版本号,uni

//uniapp方法获取版本号
uni.getSystemInfo({
    success: function (res) {
	    console.log(res,'---------')       
	}
});

//微信小程序方法获取版本号
const accountInfo = wx.getAccountInfoSync();
this.version_number = accountInfo.miniProgram.version; // 小程序 版本号
console.log(res,'---------')  

猜你喜欢

转载自blog.csdn.net/L_15737525552/article/details/128455039
今日推荐