参考问题: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>

亲测可解决此问题!

posted on 2017-06-22 15:35  百里登风  阅读(4457)  评论(1编辑  收藏  举报