摘要:
1.ModelState.AddModelError("ServerMessage", MessageHelper.Instance.GetMessage(code));@Html.ValidationMessage("ServerMessage")2.private Field<DateTime?> _ExpiredDate = new Field<DateTime?>();如果是底层返回的数据,则应该判断_ExpiredDate == null如果你是new, 则判断_ExpiredDate.value == null此类型前 阅读全文