标签:alert image .com logs name app code cti rdo
1.首先安装cordova-plugin-app-version
cordova plugin add cordova-plugin-app-version
2. 调用方法如下
function getAppVersionCode(){ cordova.getAppVersion.getVersionNumber().then(function (version) { alert(version); }); }
3. 效果如下图
标签:alert image .com logs name app code cti rdo
原文地址:http://www.cnblogs.com/linlf03/p/6656466.html