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

Method checkForm

mini_program/common/Validate.js:509–518  ·  view source on GitHub ↗

* 验证所有字段的规则,返回验证是否通过 * @param {Object} event 表单数据对象

(event)

Source from the content-addressed store, hash-verified

507 * @param {Object} event 表单数据对象
508 */
509 checkForm(event) {
510 this.__initData()
511
512 for (let param in this.rules) {
513 this.setView(param)
514 this.checkParam(param, this.rules[param], event)
515 }
516
517 return this.valid()
518 }
519
520 /**
521 * 返回验证是否通过

Callers

nothing calls this directly

Calls 4

__initDataMethod · 0.95
setViewMethod · 0.95
checkParamMethod · 0.95
validMethod · 0.95

Tested by

no test coverage detected