jQuery on electron main process
问题 How I can use jQuery on electron main process? It seems every example I find is for renderer process. Example I want to create a util that will be used by the main process, that will fetch data from an api using get. Then using $.get makes an error that get is not a function . Thanks. 回答1: jQuery is a JS library for the browser, eg DOM manipulating, etc. You shouldn't use that in the main process, since the main process is running in NodeJS. It's hard to propose a solution without knowing