var partenW = window.parent;
debugger;
var parentDiv = partenW.document.getElementById('ContextDiv');//父窗口中定义的div
//var parentModel = partenW.justep.Util.getModel(parentDiv);
var parentModel = partenW.justep.Bind.contextFor(parentDiv).$model;
//window.justep.bind.contextFor('外层节点对象').$model 获得model 就可以获得对用的组件了
parentModel.title({a:"统计页面"});
我是想在嵌套的html里面调用 父窗口的函数 结果 var parentDiv = partenW.document.getElementById('ContextDiv');//父窗口中定义的div
这句就报错了:Uncaught SecurityError: Blocked a frame with origin "http://192.168.1.148:8888" a from accessing a frame with origin "http://localhost:8080". Protocols, domains, and ports must match 好像是跨域了 我的html用的是另外一个tomcat运行的