2017-08-17 5 views
2

私はjQueryの3.2.1とjQuery UI 1.12.1をダウンロードしたと私はそうのようにそれらをロードしています:jQueryのは(jQueryのUI内)に定義されていません

<script src="js/jquery-3.2.1.min.js" type="text/javascript"></script> 
<script src="js/jquery-ui.js" type="text/javascript"></script> 
<link rel="stylesheet" type="text/css" href="css/style.css"> 

私がキャッチされない参照エラーが表示されます。

Uncaught ReferenceError: jQuery is not defined(anonymous function) @ jquery-ui.js:14(anonymous function) @ jquery-ui.js:16 index.html:165 Uncaught TypeError: table.insertRow is not a functionObject.keys.forEach.key @ index.html:165loadResultsIn @ index.html:164loadhistory @ index.html:186onload @ index.html:12

私はこれをエレクトロンで使用しようとしています。ここで何が起こっているのか分かりません。また、CDNのからロードしようとした、ここで同じ問題に

+0

は、スクリプトの配置であるかもしれません。エラーがあなたのindex.htmlのエラーを参照していませんか?あなたがjQueryを使用しようとする場所はどこですか? – lscmaro

+0

最新の 'jQuery-ui'ライブラリを使用するか、メインのjQueryライブラリを' jQuery'構文のサポートのために古いものにダウングレードしてください。 –

+0

@lscmaro私はまだjQueryを使用していません。 – K20GH

答えて

2

見つかりソリューションを持っている: 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> 
関連する問題