When developing a desktop application based on the Electron framework, if jquery is used, there will be a conflict: jQuery is not defined.
There are several solutions, the following method is to avoid the conflict by modifying the jquery file:
Open jquery.js and add at the beginning of the file:
if (typeof module === 'object') {window.module = module; module = undefined;}
At the end of the file add:
if (window.module) module = window.module;
In this way, there will be no problem of not finding $.