当前位置: 首页 > news >正文

做网站定位网络推广营销方案100例

做网站定位,网络推广营销方案100例,有没有做网站的公司,佛山seo网站electron 开发时最麻烦就是electron版本和node版本的选择和正确安装 electron 用npm安装时太慢容易报错,建议用cnpm i 进行安装 注意最新版渲染进程使用node nodeIntegration: true, // 渲染进程可用node contextIsolation: false, // 这个值影响nodeIntegration是…

electron 开发时最麻烦就是electron版本和node版本的选择和正确安装
electron 用npm安装时太慢容易报错,建议用cnpm i 进行安装

注意最新版渲染进程使用node
nodeIntegration: true, // 渲染进程可用node
contextIsolation: false, // 这个值影响nodeIntegration是否生效electron  的主进程的创建
function createWindow () {// Create the browser window.const mainWindow = new BrowserWindow({width: 800,height: 600,webPreferences: {nodeIntegration: true, // 渲染进程可用nodecontextIsolation: false, // 这个值影响nodeIntegration是否生效preload: path.join(__dirname, 'preload.js')}})// and load the index.html of the app.mainWindow.loadFile(path.join(__dirname, 'index.html'))// Open the DevTools.mainWindow.webContents.openDevTools()// 渲染进程使用remote remote.enable(mainWindow.webContents)//3require("./ipcMain/menu")require("./ipcMain/rightMenu")// 主进程发送消息mainWindow.webContents.send("mainMag","发财发财")
}app.on('ready', createWindow);
<!DOCTYPE html>
<html><head><meta charset="UTF-8" /><title>Hello World!</title><link rel="stylesheet" href="index.css" /></head><body><h1>💖 Hello World!</h1><p>Welcome to your Electron application.</p><h1>Hello World!</h1>We are using Node.js <span id="node-version"></span>,Chromium <span id="chrome-version"></span>,and Electron <span id="electron-version"></span>.<!-- You can also require other files to run in this process --><!-- <script src="./renderer.js"></script> --></body><script>// 引用node中的函数require('path')// 高版本,渲染线程打开新窗口方法,需要在主进程打开// const {BrowserWindow} = require("@electron/remote")// const win = new BrowserWindow({//         width:500,//         height:500,//     })// win.loadURL("https://www.baidu.com")const { ipcRenderer } = require("electron");window.addEventListener('contextmenu', (e) => {e.preventDefault()// 渲染进程发送消息ipcRenderer.send('show-context-menu')})// 渲染进程接受主进程消息ipcRenderer.on('context-menu-command', (e, command) => {// ...})ipcRenderer.on('show-context-menu-reply', (e, command) => {console.log("开心",command)})ipcRenderer.on('mainMag', (e, command) => {console.log(e)console.log("------------")console.log(command)})</script>
</html>
http://www.ds6.com.cn/news/41618.html

相关文章:

  • 做网站几个步骤企业管理培训公司排行榜
  • 手机网站建设基本流程百度站长工具怎么用
  • 中国廉洁建设网是什么正规网站吗开鲁网站seo转接
  • 网站建设的销售好做吗推广竞价账户托管
  • 广东衍发建设管理有限公司公司网站兰州网络seo
  • 电子商务网站难做吗网站网页设计
  • 淘宝网站设计分析全球搜钻是什么公司
  • 深圳专业做网站免费自助建站哪个最好
  • wordpress 标签页企业seo整站优化方案
  • wordpress 4.9 正式版百度seo技术优化
  • 仙游网站建设公司a5站长网
  • 照明灯企业网站织梦模板磁力搜索引擎下载
  • 个人站长怎么做企业网站广州百度搜索排名优化
  • o2o网站开发方案国内最好的危机公关公司
  • 建立网站有什么好处做一个企业网站大概需要多少钱
  • 北京app搭建鱼头seo软件
  • 北京做网站公司哪家好如何快速推广
  • 五百丁简历模板官方网站淘宝的前100个关键词排名
  • 网络推广就是做网站吗网络营销方案如何写
  • 国外企业查询网站威海seo优化公司
  • 黑龙江省建设集团有限公司网站seo推广小分享
  • 中国国际旅行社官网线路自己的网站怎么样推广优化
  • 怎么做简单的视频网站网络推广官网首页
  • 5ucms怎样做网站自适应百度seo建议
  • 北京西路做网站的公司seo自动工具
  • 长安区网站建设如何制作网站赚钱
  • 网站建设有那些内容b站黄页推广
  • 珠海网站制作哪家便宜超级外链发布工具
  • 长长沙网站制作app推广策略
  • 网站架构图怎么做平台优化是什么意思