如题:
框架mainFrame为主框架包含mainJsp.jsp,mainJsp.jsp中引入main.js。
框架childFrame为mainFrame的子框架该框架包含childJsp.jsp并在childJsp.jsp中引入child.js。
child.js中有一个函数:
function test(){
}
在mainJsp.jsp不引入child.js的情况下如何调用tess()?
框架mainFrame为主框架包含mainJsp.jsp,mainJsp.jsp中引入main.js。
框架childFrame为mainFrame的子框架该框架包含childJsp.jsp并在childJsp.jsp中引入child.js。
child.js中有一个函数:
function test(){
}
在mainJsp.jsp不引入child.js的情况下如何调用tess()?
Chrome
window.frames["子框架的名字"]IE
document.getElementById("子框架的名字").contentWindow