avalon数据验证必须在所有表单元素的上方form元素加上ms-validate指令, 当前元素加上ms-rules才会生效
<form ms-validate="@validation"> <input ms-duplex='@aaa' ms-rules='require,email,maxlength' data-maxlength='4' data-maxlength-message='太长了' > </form>
avalon数据验证必须在所有表单元素的上方form元素加上ms-validate指令, 当前元素加上ms-rules才会生效
<form ms-validate="@validation"> <input ms-duplex='@aaa' ms-rules='require,email,maxlength' data-maxlength='4' data-maxlength-message='太长了' > </form>