|
Model.prototype.li1Click = function(event){
window.cordova.getAppVersion.getVersionNumber(this.success,this.error);
};
Model.prototype.success = function(result){
messageinfo="当前版本:"+result;
this.comp("messageDialog2").show({
type : "OK",
title : "提示信息",
message : messageinfo,
width : 260
});
};
Model.prototype.error = function(){
justep.Util.hint("获取失败");
};
使用时报this.comp is not function,我用self代替this也不行,为什么呢? |
|