2
I’m web developer, I’ve tried methods in an English post, but... none works, I want to add Jquery in the electon.
I’ve used this one without window.$
doesn’t work.
<script src='https://code.jquery.com/jquery-3.2.1.min.js'></script>
I tried with window.$
was working but stopped working for some unknown reason...
<script src='https://code.jquery.com/jquery-3.2.1.min.js' onclick='window.$ = window.jQuery = module.exports;'></script>
Does anyone know any script to make Jquery work?
I want to leave him in mine main.js
(index.js) instead of leaving it on a web page if possible. If it doesn’t, I leave it on the web page itself.
Have you ever tried something like
const $ = require('jquery')
?– Woss