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.
这些内置的验证器对一般的验证任务足足有余,比如验证邮件地址或日期。
Allow blank dates to pass validation and save in the database?
允许空白日期通过验证并保存在数据库中?
应用推荐