在我的Adobe AIR应用程序中,我隐藏了初始窗口并创建了另一个加载到单独HTML文件中的窗口。是否可以在另一个窗口中调用一个函数?
我已阅读过例如:Possible to call a Javascript method in the context of another window?
但我使用的是Native Windows而不是HTML Windows,所以不要认为它会起作用。
有什么想法吗?
结构如下:
`file1.html`
function doSomething() {
}
所以我想从file2
中调用file1中的doSomething函数`file2.html`
doSomething();