1.

wx.getSystemInfo({

success:function(res){varversionres.SDKVersion;versionversion.replace(/./g,"")console.log(version)if(parseInt(version)120){//小于1.2.0的版本}}

TAG标签: 微信小程序基础库版本大小判断微信小程序的比大小代码小程序代码包大小限制

http://www.xiaochengxub.com/read-96442.html