Please help me to see what this code means.

var checkCardID = (rule, value, callback) = > {

        setTimeout(() => {
            if(this.form.personIdInfoType === "20000"){
                if (idCardNoUtil.checkIdCardNo(value)) {
                    callback();
                } else {
                    callback(new Error(""));
                }
            }else{
                callback();
            }
        }, 1);
        callback  
May.09,2021

The parameter callback passed in the

checkCardID method is a callback method called by, callback (). You will know the usage of the js callback function in Baidu.
for example, when we call the checkCardID method, we can write it as follows:

  

as answered above, the third argument to the checkCardID function is a function (callback), callback () that is called

.
Menu