例:
.Regex("^[A-Za-z0-9]+$") //正则表达式 .InvalidText("只能输入英文字符和数字.")); //输入错误提示
转载于:https://www.cnblogs.com/teamate/p/3745739.html