日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) >

html 调用main方法,ipcmain和ipcrenderer从index.html调用main.js函数

發(fā)布時(shí)間:2025/4/5 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 html 调用main方法,ipcmain和ipcrenderer从index.html调用main.js函数 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

我是新來(lái)的

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

不工作…任何幫助都將不勝感激。提前謝謝。

總結(jié)

以上是生活随笔為你收集整理的html 调用main方法,ipcmain和ipcrenderer从index.html调用main.js函数的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。