[英]Javascript $ is not defined with document.ready
I have the following code, and I'm getting a "$ is not defined" result with the document.ready script not working correctly. 我有以下代码,并且在document.ready脚本无法正常工作的情况下得到“未定义$”的结果。 I've looked up many different questions of this online, and I cannot figure it out.
我在网上查询了许多不同的问题,但无法弄清楚。
<script src="scripts/jquery-3.1.0.js"></script>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/jquery.mobile.min.js"></script>
<script src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
<script>
$(document).ready (function() {
$( "body>[data-role='panel']" ).panel();
});
</script>
Try This 尝试这个
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
$( "body>[data-role='panel']" ).panel();
});
</script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.