摘要: mvc 数据验证金钱格式decimal格式验证首先看下代码1 /// 2 /// 产品单价3 /// 4 [Display(Name = "产品单价")]5 [Range(typeof(decimal), "0.00", "99999999.99", ErrorMessage = "产品单价格式不正确")]6 [RegularExpression(@"^(([0-9]+)|([0-9]+\.[0-9]{1,2}))$", ErrorMessage = "产品单价格式不正确!" 阅读全文
posted @ 2013-12-31 13:50 学永不止步 阅读(3856) 评论(0) 推荐(1) 编辑