简体   繁体   中英

Templating database queries in Electron js

I'm using ElectronJS to build a simple CRUD that connects to an online database (I'm using MySQL to retrieve data from the database). I can log it to the console but I want to display it on my window. I have looked for template options but so far nothing's useful, how do I display the data I retrieve from the MySQL database to my window?

问题是您正在main进程中检索数据,并且窗口正在renderer进程上运行,因此首先您必须使用电子IPC通信功能将该数据传递到renderer进程,然后才能将该数据显示到renderer进程中。窗口,即renderer进程。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM