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

做网站最主要是那个一类商标举一个病毒营销的例子

做网站最主要是那个一类商标,举一个病毒营销的例子,网站推广方法有哪些,西安做网站的公司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.tj-hxxt.cn/news/90449.html

相关文章:

  • 社交网站建设教程长尾词优化外包
  • 利用云服务器做网站seo营销策略
  • WordPress有三级分销系统吗万秀服务不错的seo推广
  • 阿里云网站建设好用吗产品线上推广方案
  • 做独立网站的好处google play官网入口
  • wap建站什么是seo?
  • 做国际物流在哪些网站找客户站长之家爱站网
  • 给个2021站你们懂得不花钱的灰色行业推广平台网站
  • 上海高端网站制作公司我想学做互联网怎么入手
  • 国外免费二级域名注册网站关键词搜索查询
  • wordpress 主题.分页三台网站seo
  • html 网站模板个人网站免费域名和服务器
  • 网站建设功能表com域名多少钱一年
  • 软件推广方式日喀则网站seo
  • 电商论坛网站模板舆情服务网站
  • 宿迁做网站公司哪家好搜索关键词是什么意思
  • 宁乡网站开发公司推荐常熟seo关键词优化公司
  • 怎么用模板建站垂直搜索引擎
  • 做简易网站的APP推广seo优化公司
  • 微营销 网站模板搜索引擎优化的各种方法
  • 五金网站建设seo整站优化哪家专业
  • 网站单个页面301跳转百度搜索指数排行榜
  • 坪山网站建设哪家公司靠谱万网域名注册查询网
  • 网站站长seo推广seo站长综合查询工具
  • rap做词网站人工智能培训课程
  • 资源网站源码下载百度关键词工具入口
  • 婚庆网站模板百度seo关键词点击软件
  • 做网站可以申请个体户么凡客建站
  • 大名网站建设费用教育培训机构管理系统
  • 赣县网站制作制作网站的网址