简体   繁体   English

客户端MVC验证包含.js文件的正确顺序

[英]correct sequence of including .js files for client side mvc validation

these .js files i included in my .aspx 我包含在.aspx中的这些.js文件

<script src="../../Scripts/jquery.validate.js" type="text/javascript"></script> 
<script src="../../Scripts/Plugins/jqGrid/grid.locale-en.js" type="text/javascript"></script>
<script src="../../Scripts/Plugins/JqGrid/jquery.jqGrid.min.js" type="text/javascript"></script>

<script src="../../../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
<script src="../../../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script> 
<script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>

<link href="../../Content/Css/JqGrid/ui.jqgrid.css" rel="stylesheet" type="text/css" />

i am getting error "invlid label" in jquery.. min.js 我在jquery中收到错误“ invlid label”。

is there any correct sequence in which files are included. 包含文件的顺序是否正确? please let me know if am wrong somewhere .... 请让我知道某处是否有错....

thanx in advance 预先感谢

try to include jquery.min.js before including it's plugins. 尝试在包含jquery.min.js之前先添加它的插件。 Because plugins uses jquery and invalid label is not due to the order of including. 因为插件使用jquery,并且无效标签不是由于include的顺序引起的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM