网站首页
编程语言
数据库
系统相关
其他分享
编程问答
WebContentsView
2024-10-12
electron-vite_4使用WebContentsView快速集成已有项目
Web嵌入官方推荐使用WebContentsView;集成也比较简单,但还是需要你单独写点东西;src/main/index.ts进行修改import{app,shell,BrowserWindow,ipcMain,nativeImage,WebContentsView,dialog}from'electron';functioncreateWindow():void{//1.创建br