|
我现在有个项目用的iframe做首页,mainActivity.w页面语句为:
<div class="x-panel-content" xid="mapArea" style="font-size:0">
<iframe style="width:100%;height:120%;border:0;" src="$UI/jcapp/html/main.html"/>
</div>
在html也点击跳转按钮后,能跳转到mainActivity.js的test方法中,输出内容也都有,但是使用justep.Shell.showPage("reg");却无法跳转,提示页面被拦截,不知道该怎么办,如图:
部分代码:
var justep = require("$UI/system/lib/justep");
var ShellImpl = require('$UI/system/lib/portal/shellImpl');
var Model = function(){
this.callParent();
var shellImpl = new ShellImpl(this, {
"contentsXid" : "pages",
"pageMappings" : {
"reg" : {
url : require.toUrl('./reg.w')
}, }
})
};
Model.prototype.test = function(data){
console.log("code:"+data.a);
justep.Shell.showPage("reg");
};
|
|