Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.9k views
in Technique[技术] by (71.8m points)

nodejs文字点选验证

image.png
如上图所示,我奉命要开发这样一个组件,如果是仅用前端的话,倒是没什么难度。可问题来了,还需要后端的校验。

所以,我就有了2个问题:

  1. 验证码展现的方式,是后端把文字随机放上去后生成一张图片发到前端,然后前端展现,点击后返回坐标数据验证呢?还是,后端把随机坐标和文字发到前端,前端通过canvas生成图片,点击后返回坐标给后端进行验证呢?
  2. 如果是前者,在nodejs中,怎么储存之前生成的图片随机文字的坐标信息?

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...