[英]jQuery libraries are conflicting
I have a bootstrap input range slider and it was working fine but when I am adding another jQuery library it stopped my jQuery slide can anyone help me out to resolve this issue? 我有一个bootstrap输入范围滑块,它工作正常,但是当我添加另一个jQuery库时,它停止了我的jQuery幻灯片,有人可以帮我解决这个问题吗?
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.12.4.min.js"><\/script>')</script>
<script src="//code.jquery.com/ui/1.12.0/jquery-ui.js"></script>//When I remove this library it is then working fine
<script src="js/vendor/bootstrap.min.js"></script>
<script src="js/main.js"></script>
<script type="text/javascript" src="js/slick.js"></script>
<script type='text/javascript' src="js/bootstrap-slider.js"></script>
<script type='text/javascript'>
$(document).ready(function() {
$("#ex2").slider({});
$('#ex20a').on('click', function(e) {
$('#ex20a')
.parent()
.find(' >.well')
.toggle()
.find('input')
.slider('relayout');
e.preventDefault();
});
});
</script>
I guess the problem with conflicting name of the method. 我猜想方法名称冲突。 Visit https://github.com/seiyria/bootstrap-slider#what-if-there-is-already-a-slider-plugin-bound-to-the-jquery-namespace
访问https://github.com/seiyria/bootstrap-slider#what-if-there-is-already-a-slider-plugin-bound-to-the-jquery-namespace
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.