|

楼主 |
发表于 2016-5-10 01:35:11
|
显示全部楼层
1、您让我参考的这个帖子,我照写,报错“cannot set property isSinglePage of undefined”:
define(function(require) {
var $ = require("jquery");
var justep = require("$UI/system/lib/justep");
var ShellImpl = require('$UI/system/lib/portal/shellImpl');
require("$UI/tk/appVersionChecker");//app更新
var Model = function() {
this.callParent();
var shellImpl = new ShellImpl(this, {
"contentsXid" : "pages",
"pageMappings" : {
"main" : {
url : require.toUrl('./index_main.w')
},
……
Model.prototype.modelLoad = function(event) {
//设置单页模式
this.shellImpl.isSinglePage = true;
……
2、另外,也参考了其它帖子,这样写也不起作用:
Model.prototype.div4Click = function(event){
justep.Shell.setIsSinglePage(true);
var row = event.bindingContext.$object;
var fID = row.val("fID");
justep.Shell.showPage("project-detail",{fID : fID});
};
|
|