Server Side [removed] Why?

后端 未结 5 644
鱼传尺愫
鱼传尺愫 2020-12-13 02:12

Is the use of server side javascript prevalent? Why would one use it as opposed the any other server side scripting? Is there a specific use case(s) that makes it better tha

5条回答
  •  眼角桃花
    2020-12-13 02:50

    I think a really cool use of server-side Javascript that isn't used nearly often enough is for data validation. With it, you can write one javascript file to validate a form, check it on the client side, then check it again on the server side because we shouldn't trust anything on the client side. It lets you keep your validation rules DRY. Quite handy.

    Also see:

    • Will server-side Javascript take off? Which implementation is most stable?
    • When and how do you use server side JavaScript?

提交回复
热议问题