前端HTML,JQ
<!DOCTYPE html> <head> <meta http-equiv="X-UA-Compatible" content="IE=7; IE=8; IE=9; IE=10" /> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <!--jquery--> <script type="text/javascript" charset="utf-8" src="/System/UI/jquery/jquery-1.7.1.min.js"></script> <script type="text/javascript" charset="utf-8" src="/System/UI/jquery-ui/1.8.14/js/jquery-ui-1.8.14.custom.min.js"></script> <link rel="stylesheet" type="text/css" href="/System/UI/jquery-ui/1.8.14/css/smoothness/jquery-ui-1.8.14.custom.css" /> <!--validationEngine--> <script type="text/javascript" charset="utf-8" src="/System/UI/jquery.validationEngine/2.2.4/js/languages/jquery.validationEngine-ZH_CN.js"></script> <script type="text/javascript" charset="utf-8" src="/System/UI/jquery.validationEngine/2.2.4/js/jquery-ecmc-validationEngine.min.js"></script> <link rel="stylesheet" type="text/css" href="/System/UI/jquery.validationEngine/2.2.4/css/validationEngine.jquery.css" /> <style type="text/css"> .dv{ margin:20px;} td{ padding:10px;} </style> <script type="text/javascript"> $(document).ready(function(){ //alert("ready."); }); function fnCheck(){ return "error info"; } </script> </head> <body> <form id="frm" action="" class="ecmc_Form_NeedValidation"> <div class="dv"> validationEngine Test <table> <tr><td><input type="text" id="txtRequired" class="validate[required]"/></td><td>必填</td></tr> <tr><td><input type="text" id="txtNumber" class="validate[required,custom[number]]"/></td><td>数字</td></tr> <tr><td><input type="text" id="txtFuncCallww" class="validate[funcCall[fnCheck]]"/></td><td>自定义</td></tr> </table> <input type="submit" id="btn" value="validation"/> </div> </form> </body> </html>
后端ASP
时间: 2024-11-19 22:53:01