JavaScript validation that works both on client and Node.js server?

前端 未结 2 1969
天涯浪人
天涯浪人 2020-12-25 14:17

What are my options for using the same JavaScript code to validate both on client side and on server side (Node.js)?

2条回答
  •  温柔的废话
    2020-12-25 14:52

    Take a look at revalidator. It is described as "A cross-browser / node.js validator used by resourceful and flatiron."

提交回复
热议问题