14.发送通知
-- 未经授权禁止转载 --
main.js
	import { Notification } from "electron"

	//发送通知
	ipcMain.handle("sendNotify", async () => {
	    const notify = new Notification({
	        icon:"resource/images/code.ico", //自定义图标
	        title:"邓瑞编程",
	        body:"dengruicode.com"
	    })
	    
	    notify.show()
	})

index.html
	<button id="sendNotify">发送通知</button>

index.js
	//发送通知
	document.querySelector('#sendNotify').addEventListener('click', () => {
	    DRAPI.invoke("sendNotify")
	})