前台是@Html.ValidationMessageFor(m => m.DepartmentCd)、
后台是if (registerAccount.DepartmentCd == null)
但是如果DepartmentCd为空,前台就不执行,直接进入后台判断,这是怎么回事?
有什么办法能无论怎样,前台都执行吗
后台是if (registerAccount.DepartmentCd == null)
但是如果DepartmentCd为空,前台就不执行,直接进入后台判断,这是怎么回事?
有什么办法能无论怎样,前台都执行吗
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货