Options
All
  • Public
  • Public/Protected
  • All
Menu

移动端form的校验规则模板

Hierarchy

  • FormVerify

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Static _verifys

_verifys: { amount: (value: any) => string; date: (value: any) => string; email: (value: any) => string; hrefurl: (value: any) => string; identity: (value: any) => string; number: (value: any) => string; numberInt: (value: any) => string; phone: (value: any) => string; postalCode: (value: any) => string; required: (value: any) => string; specialCharacters: (value: any) => string } = ...

一般的校验规则

Type declaration

  • amount: (value: any) => string
      • (value: any): string
      • 金额

        Parameters

        • value: any

        Returns string

  • date: (value: any) => string
      • (value: any): string
      • 日期校验规则模板

        Parameters

        • value: any

        Returns string

  • email: (value: any) => string
      • (value: any): string
      • 邮件地址校验规则模板

        Parameters

        • value: any

        Returns string

  • hrefurl: (value: any) => string
      • (value: any): string
      • web路径校验规则模板

        Parameters

        • value: any

        Returns string

  • identity: (value: any) => string
      • (value: any): string
      • 身份证校验规则模板

        Parameters

        • value: any

        Returns string

  • number: (value: any) => string
      • (value: any): string
      • 实数数字校验规则模板

        Parameters

        • value: any

        Returns string

  • numberInt: (value: any) => string
      • (value: any): string
      • 整数校验规则模板

        Parameters

        • value: any

        Returns string

  • phone: (value: any) => string
      • (value: any): string
      • 电话号码校验规则模板

        Parameters

        • value: any

        Returns string

  • postalCode: (value: any) => string
      • (value: any): string
      • 邮政编码校验规则模板

        Parameters

        • value: any

        Returns string

  • required: (value: any) => string
      • (value: any): string
      • Parameters

        • value: any

        Returns string

  • specialCharacters: (value: any) => string
      • (value: any): string
      • 不包含特殊字符 ~!@#$%^&*()_+<>?:"{},.

        Parameters

        • value: any

        Returns string

Methods

Static add

  • 增加校验规则

    Parameters

    Returns void

Generated using TypeDoc