Files
electronTs-ks-demo/dist/application/assets/js/Home.js
2024-09-27 01:23:51 +08:00

14 lines
320 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const { ipcRenderer } = require('electron');
class Home {
constructor() {
console.log(process.argv)
$(".home").click(()=> {
// 渲染进程发起ipc让主进程创建窗体
ipcRenderer.sendSync('openWindow', ['PlayVideo.controller', true])
})
}
}
new Home();