| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

差分

ナビゲーションに移動 検索に移動
439 バイト追加 、 2021年9月25日 (土) 08:09
===コード===
----
*オブジェクトの分割代入====mainn.js====
<pre>
const { app, BrowserWindow} = require('electron');
 
function createWindow() {
let win = new BrowserWindow({
width: 400,
height: 200,
webPreference: {
nodeIntegration: true
}
});
win.loadFile('index.html');
}
 
app.whenReady().then(createWindow);
</pre>
=====オブジェクトの分割代入=====
const { app, BrowserWindow} = require('electron');
=====Node機能の統合=====
*trueでNode.jsの機能を利用できるようになる
nodeIntegration: true
====app====
----

案内メニュー