跳到主要内容
CNode

关于express下使用node-ccap的问题

问答
DDsy4719发布于 11 年前
023170

app.get('/post', function (req, res) { res.render('post_lost'); }) app.get('/captcha', function (req, res) { var arr = ccap(); var text = arr[0]; var buf = arr[1]; res.write(arr[1]); res.end(); }) post_lost.ejs中有 < . img src='/captcha'>

请问怎么在/post下取到 /captcha中的text值? 浏览器在访问localhost:3000/post的网址下取到/captcha下的text值?

查看回复

回复 (0)

暂无回复,成为第一个参与讨论的人。

参与回复

登录后即可参与回复。登录