JavaScript验证不好吗? [英] Is JavaScript validation bad?
本文介绍了JavaScript验证不好吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
自从我们使用JavaScript验证表单以来已经有很长时间了。我确信大多数其他开发人员都必须这样做。
It has been long time since we have been validating our forms using JavaScript. I am sure this must be the case with most other developers.
问题:
如果用户怎么办?或者可能是一个坏人)禁用JavaScript?
What if the user (or probably a bad guy) disables JavaScript?
你迷路了!
- JavaScript验证值得吗?
- 我们现在应该使用它吗?
- 对此有什么解决方案吗?
如果我错了,请纠正我。
Correct me if I am wrong.
推荐答案
JavaScript验证值得吗?
Is JavaScript validation worth of it?
是的,因为它提供了更好的用户体验并保留了带宽。
Yes, as it provides a better user experience and preserves bandwidth.
我们应该使用它吗?现在?
Should we ever use it now?
是的,出于上述原因。
有没有解决方法?
Are there any solutions to this?
是的,也可以使用服务器端验证。
Yes, use server-side validation as well.
这篇关于JavaScript验证不好吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文