When dealing with e-mail validation, phone numbers, URLs, dates, etc., it's sometimes better to write your own validator; but we'll get to that in just a bit.
在处理电子邮件验证、电话号码、URL、日期等数据时,有时编写自己的验证 器会更好一些,不过我们将在稍后对此进行讨论。
These built-in validators are more than sufficient for run-of-the-mill validation tasks, such as checking e-mail addresses or dates.
这些内置的验证器对一般的验证任务足足有余,比如验证邮件地址或日期。
You would have to hand code the validation to root out this bug — not to mention invalid dates and invalid numerics.
也许您必须手工编写验证代码来根除这个bug,而不关心非法的日期和非法的数字。
Allow blank dates to pass validation and save in the database?
允许空白日期通过验证并保存在数据库中?
Allow blank dates to pass validation and save in the database?
允许空白日期通过验证并保存在数据库中?
应用推荐