{
if (typeof window.my_iframe == "undefined") {
window.my_iframe = document.getElementById(frameId)
if (typeof window.my_iframe == "undefined")
throw "fatal: iframe object not found"
}
return window.my_iframe
}
function getFrameWin()
{
var f = getFrame()
var win = f.contentWindow || f.contentDocument
return win
}
function getFrameDoc()
{
var win = getFrameWin()
return win.contentDocument || win.document
}
var doc = getFrameDoc()
doc.body.getElementById('div1').style.display = 'block'
onic基本能满足组件需求,用cordova那么界面部分就都交给html,业务部分才用android,否则你要移植到ios时又要写一套,那你还不如直接用android原生开发,运行效率快很多