blob: 094b649c669dcf8015314fafb99116d0145fc771 [file] [log] [blame]
var db = null;
var app = {
// Application Constructor
initialize: function() {
document.addEventListener('deviceready', this.onDeviceReady.bind(this), false);
},
onDeviceReady: function() {
//$.showLoading("加载中");
IGetPage(function(ok, ret, err) {
if (ok) {
$.hideLoading();
if(ret.code==200){
$("#content").html(ret.page)
}else{
/*$.alert(ret.msg, "错误", function() {
window.location = "register.html";
});*/
}
} else {
//$.hideLoading();
/*$.alert("加载失败了:" + ret.status, "错误", function() {
window.location = "register.html";
});*/
}
})
}
};
app.initialize();