You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
627 B
18 lines
627 B
// This file is required by the index7.html file and will
|
|
// be executed in the renderer process for that window.
|
|
// All of the Node.js APIs are available in this process.
|
|
//登陆界面最大化
|
|
var ipc= require('electron').ipcRenderer;
|
|
document.getElementById('maxbt').addEventListener('click',()=>{
|
|
console.log("点击最大化")
|
|
ipc.send('window-max')
|
|
})
|
|
document.getElementById('minbt').addEventListener('click',()=>{
|
|
console.log("点击最小化")
|
|
ipc.send('window-min')
|
|
})
|
|
document.getElementById('closebt').addEventListener('click',()=>{
|
|
console.log("点击关闭")
|
|
ipc.send('window-close')
|
|
})
|
|
|