|
发表于 2020-1-9 17:14:41
|
显示全部楼层
本地测试没问题
- var $ = require("jquery");
- var justep = require("$UI/system/lib/justep");
- define(function(require) {
- var Model = function() {
- this.callParent();
- this.rowid = "";
- this.BackKeyDownListener = "";
- };
-
- Model.prototype.modelParamsReceive = function(event) {
- this.rowid = this.getContext().getRequestParameter("rowid");
- };
- Model.prototype.modelLoad = function(event) {
- this.BackKeyDownListener = function() {
- alert(me.rowid);
- }
- document.addEventListener("backbutton", this.BackKeyDownListener, false);
- };
- Model.prototype.modelUnLoad = function(event) {
- document.removeEventListener("backbutton", this.BackKeyDownListener, false)
- };
- return Model;
- });
复制代码
|
|