参考问题:https://stackoverflow.com/questions/32621988/electron-jquery-is-not-defined
<!-- Insert this line above script imports --> <script>if (typeof module === ‘object‘) {window.module = module; module = undefined;}</script> <!-- normal script imports etc --> <script src="scripts/jquery.min.js"></script> <script src="scripts/vendor.js"></script> <!-- Insert this line after script imports --> <script>if (window.module) module = window.module;</script>
亲测可解决此问题!
时间: 2024-11-05 16:05:47