electron项目中使用jquery不生效的解决方法

  才开始接触electron的时候,本来想用bootstrap快速搞一个demo,无奈有些功能没法用,之后才意识到是jquery没发用,之后找了一些资料,比较简单的方式就是在引入jquery之前加入一下代码:

1 <script>
2 window.nodeRequire = require;
3 delete window.require;
4 delete window.exports;
5 delete window.module;
6 </script>
原文地址:https://www.cnblogs.com/fullstack-yang/p/6343400.html