|
VersionChecker.prototype.checkAppVersion = function() {
var self = this;
if (window.cordova && cordova.getAppVersion) {
cordova.getAppVersion
.getVersionNumber(function(currentVersion) {
if (self.appInfo[self.env]
&& self.versionCompare(currentVersion,
self.appInfo[self.env].version)
&& window.localStorage
&& localStorage.getItem('versionIgnore') !== self.appInfo[self.env].version) {
self.versionMsg.show({
type : "OKCancel",
title : "版本更新",
message : self.appInfo[self.env].changeLog
});
}
});
}
};
需求:官方的更新提示框是 更新 忽略 取消 ,我想把更新提示框改成 更新 取消
方案:修改了appVersionChecker.js文件 中的弹出框type为 OKCancel.
并且修改了 $domNode.find('.OK').text('更新');
// $domNode.find('.No').text('忽略');
this.versionMsg.on('onOK', function(event) {
//下载
this.download();
}, this);
没有效果.还是跟没修改一样.出现的忽略
这是为什么?
wex5 3.4 3.6 都编译过
|
|