手风琴无法正常工作,浏览器控制台显示错误 create:153未捕获的TypeError:$(...)。accordion不是HTMLDocument上的函数。
我的代码:
jQuery(function(){ $(“#accordion”)。accordion(); });JS文件
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/comment-reply.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/jquery.quicksand.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/jquery.tipsy.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/jquery.prettyPhoto.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/jquery.cycle.min.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/jquery.anythingslider.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/jquery.eislideshow.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/jquery.easing.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/jquery.flexslider-min.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/jquery.aw-showcase.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/layerslider.kreaturamedia.jquery-min.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/shortcodes.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/jquery.colorbox-min.js"></script> <!-- nav -->
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/jquery.tweetable.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/jquery-ui.js"></script>
<script type="text/javascript" src="{{ asset(env('ASSETS')) }}/js/myscripts.js"></script>
一个文件中包含的文件,另一个文件中的代码