JS 跨frame操作 2015-11-06·WeaponX frame js 2842 次浏览 ## jQuery ```js var ssa = $(window.parent.frames["leftFrame"].document); alert(ssa.find("#ssas").html()); ``` ## js(跨frame调用函数) ```js top.mainFrame.Test(); ```
JS 跨frame操作 2015-11-06·WeaponX frame js 2842 次浏览 ## jQuery ```js var ssa = $(window.parent.frames["leftFrame"].document); alert(ssa.find("#ssas").html()); ``` ## js(跨frame调用函数) ```js top.mainFrame.Test(); ```