本文介绍了如何避免jquery冲突?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I have one _Layout.cshtml which contains the below scripts
<script src="~/Scripts/list.min.js"></script>
<script src="~/Scripts/moment.js"></script>
<script src="~/Scripts/jquery.min.js"></script>
and another one child _PartialView.cshtml
if i include the above scripts in master layout the _PartialView.cshtml page functionality is working fine but remaining pages ajax functionalities are breaking because the bundle already has the jquery 7Version .min.js.
If i include the below scritps
<script src="~/Scripts/list.min.js"></script>
<script src="~/Scripts/moment.js"></script>
<script src="~/Scripts/jquery.min.js"></script>
remaining all pages functinalitis are working except _PartialView.cshtml.
Could you please suggest best solution to resolve this issue.
我的尝试:
What I have tried:
I have tried to put scripts in child page but not working
推荐答案
这篇关于如何避免jquery冲突?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!