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.