Tags: many ima www. Modules HTTP Development Debug Config Mode start modeVisual Studio Code Debug Electron main process Author: jekkay Category: Electron publish time: 2017-06-11 14:56A • overviewThis article was originally from the "Drop Stone": http://www.easysb.cnFor the JavaScript script in the window, we can debug through many plugins of Google Chrome, such as Devtools. But for the main program in
(Windowds under test, other systems not tested)1, System tray icon,Main.js:Const Tray = require (' electron '). Tray;const Menu = require (' electron '). Menu;let Tray;tray = new Tray (__dirname + '/build/img/icon.png ');//System tray icon tray.settooltip (' miaolian.in ');// Tips;const menu = menu.buildfromtemplate When mouse is placed on the system tray icon ([//define right-side menu {label: "Home", Clic
Updated: 3 May 2016General notation for multi-electron Hamiltonian operators:\ (\mathscr{h}=-\sum\limits_{i=1}^{n}\dfrac{1}{2}\nabla_i^2-\sum\limits_{a=1}^{m}\dfrac{1}{2m_a}\nabla_a^2-\sum \limits_{i=1}^{n}\sum\limits_{a=1}^{m}\dfrac{z_a}{r_{ia}}+\sum\limits_{i=1}^{n}\sum\limits_{j>i}^{n}\dfrac{ 1}{r_{ij}}+\sum\limits_{a=1}^{m}\sum\limits_{b>a}^{m}\dfrac{z_az_b}{r_{ab}}\) Note: 1. Adopt the atomic unit of units; 2. The relativistic effect was not cons
Electron Create desktop applications
Electron Create desktop Application Add Taobao NPM mirrored install electron create application Packagejson MAINJS indexhtml Run application
add Taobao NPM Mirror
Do not say anything, before work to add Taobao NPM mirror image, or behind the installation module will be stuck.
$ sudo npm install-g cnpm--registry=https://regist
The previous article on the use of electron packaging configuration-related files, this is mainly about electron in a very important way of communication .First explain a concept: Electron packaging application contains two parts
The electron Environment (node), which is the main process.
Web rendering env
Use the ' Electron-quick-start ' sample project, which is officially given by electron, to copy it down,git clone https://github.com/electron/electron-quick-start.gitThere are three main documents:----index.html start Page ----main.js Displays the window after the project is launched, which can be configured, such as
Directory structure:Index.js is the main process JS.Const ELECTRON = require (' electron ') Const App=Electron.appconst Browserwindow=Electron. Browserwindow//Main ProcessConst IPC = require (' electron '). Ipcmain;app.on (' Ready ',function(){ varMainWindow =NewBrowserwindow ({width:800, Height:600}) Mainwindow.loa
Electron implements markdown Note Software (4), electronmarkdownAbout this markdown Note Software (4) -- md rendering and production project source code
Https://github.com/andytt/ErtuilEditorDirectory
About this markdown Note Software (I)-General ideas and introduction
About this markdown Note Software (2) -- model layer design
About this markdown Note Software (iii) -- View Layer Design
About this markdown Note Software (4) -- Rendering and generatio
0x01, Electron.net 1, IntroductionElectron is maintained by a team and a group of active contributors on GitHub. Use HTML,CSS and JavaScript to build an open source library for cross-platform desktop applications. Electron this is accomplished by merging chromium and node. js into the same runtime environment and packaging them as applications under Mac,windows and Linux systems. Official address: https://electronjs.org. Chromium is the engine of Goog
The Electron framework, formerly known as the Atom Shell, allows you to write desktop applications that build cross-platform using JavaScript,HTML , and CSS . It is based on io.js and Chromium open source projects and is used in the Atom editor. The Electron is open source, maintained by GitHub, and has an active community. Most importantly, Electron application
Label: style blog HTTP Io color ar OS SP strong E-cloudIs a concept in physics. An electron performs high-speed motion in a very small space outside the nucleus. Its motion is different from that of a general object. It has no definite orbit. According to the uncertainty principle in quantum mechanics, it is impossible for us to accurately determine the position and velocity of an electron at a certain tim
recently in understanding electron framework writing applications, accidental discovery of using in HTML in this way the introduction of jquery, clearly introduced, the program is always error display:uncaught referenceerror: $is not defined. After consulting the information, found not only jquery can not be used, Requirejs, Meteor, Angularjs also can not be used.reason is The Electron introduces node. J
1. NPM source is too slow, you can cut the source to the domestic Taobao mirror.
NPM Config Set Registry https://registry.npm.taobao.org
2. To electron's domestic mirror Download the latest installation package, mainly optimistic about the corresponding version of their system
Https://npm.taobao.org/mirrors/electron
3. Under the. Electron folder where the downloaded package is placed under the current u
Find time management software when found superproductivity this program, the use of electron for development, and then looked at the introduction, preface, try to build the environment, a step slowly filled the front-end knowledge IT
Nodejs Installation
Nodejs version update faster, so there may be multiple versions of a system, management tools can be a variety of, I choose to use NVM to install, one reason is simple management, the oth
As follows:Method 1SwitchCan.Method 2:or inWin = new Browserwindow ({ webpreferences:{ nodeintegration:false, } })Note that it is not possible to use Nodejs and electron APIs in the page.Method 3:Reason:In fact, there is the following code in the electron:if (typeof module = = = "Object" typeof module.exports = = = "Object") { //Set jQuery in ' module '} else {
//set jQuery in ' window '} Reference 1:https://electron.
I've used 2 different ways,1. As in the browser through the URL or llocalstorage, etc.2. I have just contacted electron for a few days, I found a way to monitor did-finish-load through webcontents, then send ().That's what the document says.Event: ' Did-finish-load 'Events are emitted when the navigation is complete, and onload events are completed.Then write Webcontents.send () in this listener;webContents.send(channel[, arg1][, arg2][, ...])
When you refer to jquery in an electron project, the following errors often occur:Here's how to fix it:①. During the test (1.10.1, as well as the current latest 3.2.1 versions are not available), it is found that the $ undefined condition will not appear as long as you use the 2.03 version of jquery or the 2.2.0 version of jquery.②. Use jquery's original keyword jquery () to replace $ (), or a custom keyword.type= "Text/javascript"> var= jquery.noc
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.