electron launcher
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

4 years ago
  1. // This file is required by the index7.html file and will
  2. // be executed in the renderer process for that window.
  3. // All of the Node.js APIs are available in this process.
  4. //登陆界面最大化
  5. var ipc= require('electron').ipcRenderer;
  6. document.getElementById('maxbt').addEventListener('click',()=>{
  7. console.log("点击最大化")
  8. ipc.send('window-max')
  9. })
  10. document.getElementById('minbt').addEventListener('click',()=>{
  11. console.log("点击最小化")
  12. ipc.send('window-min')
  13. })
  14. document.getElementById('closebt').addEventListener('click',()=>{
  15. console.log("点击关闭")
  16. ipc.send('window-close')
  17. })