[英]jQuery definition issue (for unobtrusive-ajax)
Although the solution works fine, I get the following error every time I load my page (at JQuery in jquery.unobtrusive-ajax.min.js
) 尽管该解决方案可以正常工作,但每次加载页面时(在
jquery.unobtrusive-ajax.min.js
中的jquery.unobtrusive-ajax.min.js
时,都会出现以下错误)
"GET",data:e.concat(a(this).serializeArray())})})})( jQuery );
“ GET”,data:e.concat(a(this).serializeArray())})}))() jQuery );
Any idea why is this as my AJAX calls work perfectly - Its just bot annoying to see the error in console 知道为什么这是我的AJAX调用可以正常工作的原因-它只是僵尸机器人讨厌在控制台中看到错误
Script loading sequance 脚本加载顺序
<script src="~/assets/plugins/feather-icons/feather.min.js" type="text/javascript"></script>
<script src="~/assets/plugins/pace/pace.min.js" type="text/javascript"></script>
<script src="~/assets/plugins/jquery/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="~/assets/plugins/bootstrap-typehead/typeahead.bundle.min.js"></script>
<script src="~/assets/plugins/bootstrap-typehead/typeahead.jquery.min.js"></script>
<script src="~/assets/plugins/handlebars/handlebars-v4.0.5.js"></script>
<script src="~/assets/plugins/bootstrap-tag/bootstrap-tagsinput.js"></script>
<script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
Just try to change the sequence & keep jQuery on top , as - 只需尝试更改序列并将jQuery放在最前面即可 ,如-
<script src="~/assets/plugins/jquery/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="~/assets/plugins/feather-icons/feather.min.js" type="text/javascript"></script>
<script src="~/assets/plugins/pace/pace.min.js" type="text/javascript"></script>
<script src="~/assets/plugins/bootstrap-typehead/typeahead.bundle.min.js"></script>
<script src="~/assets/plugins/bootstrap-typehead/typeahead.jquery.min.js"></script>
<script src="~/assets/plugins/handlebars/handlebars-v4.0.5.js"></script>
<script src="~/assets/plugins/bootstrap-tag/bootstrap-tagsinput.js"></script>
<script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.