• JS 验证框架 formcheck


    http://mootools.floor.ch/en/labs/formcheck/forum-registration/

    $(document).ready(function(){
                    
    new FormCheck('formular');
     });

    代码
    $(document).ready(function(){
                    
    new FormCheck('formular',
                    {
                      submitByAjax:
    true,
                      onAjaxSuccess:onajaxsuccess
                    });
                    
    function onajaxsuccess(arg){
                        
    if(arg==1){
                            ymPrompt.succeedInfo({title:
    '消息',message:'添加成功!'});
                            $(
    "form")[0].reset();
                        }
    else{
                            ymPrompt.errorInfo({title:
    '消息',message:'添加失败!'});
                        }
                        setTimeout(
    function(){ymPrompt.doHandler('ok')},2000);
                    }
    });


    下载 

  • 相关阅读:
    Thinking in Java
    Interview Common Sample Codes
    Longest Common Substring
    Mac键盘按键符号
    ElasticSearch
    Variables and Arithmetic Expression
    Associative Containers
    Container Adaptors
    string Type
    初识 tk.mybatis.mapper 通用mapper
  • 原文地址:https://www.cnblogs.com/skyblue/p/1878471.html
Copyright © 2020-2023  润新知