MCPcopy Create free account
hub / github.com/circircir-circle/human_exist_device / addMethod

Method addMethod

mini_program/common/Validate.js:296–299  ·  view source on GitHub ↗

* 添加自定义验证方法 * @param {String} name 方法名 * @param {Function} method 函数体,接收两个参数(value, param),value表示元素的值,param表示参数 * @param {String} message 提示信息

(name, method, message)

Source from the content-addressed store, hash-verified

294 * @param {String} message 提示信息
295 */
296 addMethod(name, method, message) {
297 this.methods[name] = method
298 this.defaults.messages[name] = message !== undefined ? message : this.defaults.messages[name]
299 }
300
301 /**
302 * 判断验证方法是否存在

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected