Is JavaScript validation bad?

后端 未结 14 1648
栀梦
栀梦 2021-02-01 11:56

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.

Question:

What if the

14条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-01 12:36

    JavaScript is useful for client side validation. But you cannot rely only on them. You must use server-side validation against the posted data. JavaScript just prevents unnecessary posts to the server.

提交回复
热议问题