1. 添加插件: cordova plugin add cordova-plugin-app-version
2. 調用方法:
//獲取當前文件的版本號: document.addEventListener('deviceready',function(){ cordova.getAppVersion.getVersionNumber().then(function (version){ //獲取當前app的版本號; $scope.now_version=version; }); },false);