简体   繁体   English

如何使用OpenFIN打开2个或多个应用程序

[英]How do I open 2 or multiple applications using openfin

我试图将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, 在您的配置中包括第一个应用程序url和一个preloadScripts,在预加载脚本中包括第二个应用程序的子窗口打开代码,因此,

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);
    }
);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何检查 OpenFin 中的共享工作者? - How to inspect shared worker in OpenFin? 如何在 OpenFin 中发送推送通知? - How to send Push Notifications in OpenFin? 如何使用Jasmine在量角器中创建框架来测试应用程序? - How do I create a framework in protractor using Jasmine for testing Applications? 如何在一个HTML页面上打开多个表单? - How do I open multiple forms on a single HTML page? 如何在新窗口中打开多个标签? - How do I make multiple tabs open in a new window? 如何使用桌面应用程序的浏览器小部件在当前版本的 Livecode 中为浏览器编程前进和后退按钮 - How do I program the forward and backward buttons for a browser in the current version of Livecode using the browser widget for desktop applications 如何使用systemd将Node.js应用程序部署为单个可执行文件? - How do I deploy Node.js applications as a single executable file using systemd? 应用程序使用JavaScript如何修改Keynote中textItems的position属性? - How do I modify the position property of textItems in Keynote using JavaScript for applications? 如何使用热键打开多个链接? - How can I open multiple links using a hotkey? 如何使用Flask打开下载对话框? - How do I open up a download dialog box using Flask?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM