Kendo UI input 正则表达式验证
<input type="text" pattern="[A-Z0-9_]{4}" class="k-input k-textbox" name="userId" required="required" data-bind="value:userId" data-required-msg="{{UserId}}{{required}}" validationMessage="编码字符只能是大写字母,数值或下滑线中的字符!" >
1.pattern="[A-Z0-9_]{4}"
2.validationMessage="编码字符只能是大写字母,数值或下滑线中的字符!"