|
本帖最后由 xichuinfo 于 2017-5-20 05:12 编辑
- <p> Model.prototype.modelLoad = function(event){
- document.addEventListener("backbutton", function() {
- if (localStorage.getItem("canExit") == "1") {
- if (!this.exitMsg) {
- this.exitMsg = new MsgDialog({
- parentNode : this.getElementByXid("buttons")
- });
- }
- this.exitMsg.on('onYes', function(event) {
- navigator.app.exitApp();
- }, this);
- this.exitMsg.show({
- type : "YesNo",
- title : "提示",
- message : "您确认退出系统吗?"
- });
- } else {
- justep.Shell.closePage();
- }
- }, false);
- };
- </p>
复制代码
上面代码打包后手机运行提示this.getElementByXid is not a function
请问什么情况?
|
|