model的属性如果不加验证相关的特性,ModelState.IsValid会永远为true; ... Empty; foreach(var value in ModelState.Values) { if(value.Errors.
確定! 回上一頁