html 调用main方法,ipcmain和ipcrenderer从index.html调用main.js函数
生活随笔
收集整理的這篇文章主要介紹了
html 调用main方法,ipcmain和ipcrenderer从index.html调用main.js函数
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
我是新來的
electron
這是我的
package.json
:
{
"name": "hello",
"version": "1.0.0",
"description": "hello app",
"main": "main.js",
"scripts":
{
"start": "electron ."
},
"keywords": [],
"author": "Rushikant Pawar",
"license": "ISC",
"devDependencies":
{
"electron": "2.0.2"
},
"build":
{
"asar": true
}
}
這是我的
index.html
:
Hello World!$(document).ready(function ()
{
window.alert('messageText');
$("#InputData").on("click", function ()
{
var value = $("#searchtext").val();
mainjsfunction(value);
});
});
Hello World!
Input Text
Confirm identity
我的
window.alert
正在工作…但是我的
click
功能和
mainjsfunction
不工作…任何幫助都將不勝感激。提前謝謝。
總結
以上是生活随笔為你收集整理的html 调用main方法,ipcmain和ipcrenderer从index.html调用main.js函数的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: html js 做的小游戏,用js做一个
- 下一篇: discuz 生成静态html,Disc