I think for any UI input field, we should do the following check:
1. whether empty string is allowed 2. whether duplicate value is allowed 3. whether special character is allowed, like: @, #, $, & etc.
So base on those requirements, here is something for UI
1. input value should be trimmed 2. use some method like 'escape' to escape those speical characters 3. it’s better to have some 'AJAX' check whether the value (always the name) is already existed
本文介绍了在进行UI设计时,对于输入字段进行有效验证的方法。包括检查空字符串、重复值及特殊字符处理等内容,并提出了使用AJAX进行实时验证的建议。
102

被折叠的 条评论
为什么被折叠?



