我试图将2个url添加到我的openfin app.json中,以便当我单击openfin快捷方式时它会弹出2个应用程序?
Include first application url and a preloadScripts in you configuration, Include child window open code for second application in preload script, as this,
var win = new fin.desktop.Window(
{
name: "secondApp",
url: "http://second-app.com",
defaultWidth: 600,
defaultHeight: 400
},
function() {
win.show();
},
function(error) {
console.log("Error creating window:", error);
}
);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.