我在同一页面上调用Boostrap的collapse.js和bxslider.js,看起来崩溃函数不起作用。但是,当我注释掉bxslider.js时,崩溃工作正常。有没有人知道这方面的解决方法?
以下是我要查询的常见问题解答页面: http://testing.printlabelandmail.com/faqs/
以下是我目前加价的一个例子:
<!-- jQuery -->
<script src="http://code.jquery.com/jquery.js"></script>
<script src="http://testing.printlabelandmail.com/wp-content/themes/printlabelandmail- theme/js/jquery.easing.1.3.js"></script>
<!-- Bootstrap js -->
<script src="http://testing.printlabelandmail.com/wp-content/themes/printlabelandmail-theme/js/bootstrap.min.js"></script>
<!-- touch effects for hover effects in work section -->
<script src="http://testing.printlabelandmail.com/wp-content/themes/printlabelandmail-theme/js/toucheffects.min.js"></script>
<!-- animated header -->
<script src="http://testing.printlabelandmail.com/wp-content/themes/printlabelandmail-theme/js/cbpAnimatedHeader.min.js"></script>
<script src="http://testing.printlabelandmail.com/wp-content/themes/printlabelandmail-theme/js/classie.min.js"></script>
<!-- bxSlider Javascript file -->
<script src="http://testing.printlabelandmail.com/wp-content/themes/printlabelandmail-theme/js/jquery.bxslider.js"></script>
<!-- form validation plugin -->
<script src="http://testing.printlabelandmail.com/wp-content/themes/printlabelandmail-theme/js/jquery.validate.min.js"></script>
<script src="http://testing.printlabelandmail.com/wp-content/themes/printlabelandmail-theme/js/uno-form-validation.js"></script>
<!-- uno js -->
<script src="http://testing.printlabelandmail.com/wp-content/themes/printlabelandmail-theme/js/uno.js"></script>
<script src="http://testing.printlabelandmail.com/wp-content/themes/printlabelandmail-theme/js/transition.js"></script>
<script src="http://testing.printlabelandmail.com/wp-content/themes/printlabelandmail-theme/js/collapse.js"></script>
<script type="text/javascript">
$(document).ready(function () {
(function ($) {
$('#filter').keyup(function () {
var rex = new RegExp($(this).val(), 'i');
$('.searchable tr').hide();
$('.searchable tr').filter(function () {
return rex.test($(this).text());
}).show();
})
}(jQuery));
});
</script>
<script type="text/javascript">
$('.collapse').collapse()
</script>