才开始接触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>

 

相关文章:

  • 2021-09-20
  • 2022-01-09
  • 2021-08-04
  • 2021-10-14
  • 2021-11-09
  • 2021-09-28
  • 2021-06-19
猜你喜欢
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-07
  • 2021-09-29
相关资源
相似解决方案