JavaScript get 请求参数带有?,怎么处理

ane · March 10, 2014 · Last by dorentus replied at March 10, 2014 · 2115 hits

本来是 node 中的代码。无奈 node 社区登不上去

<a href="u/刘宏庆/2014-3-10/What's the  Rails' Polymorphic Associations?">What's the  Rails' Polymorphic Associations?</a>

app.get('/u/:name/:day/:title', function (req, res) )

这样处理似乎 req.params.title 会去掉?。暂时不知道如何处理,赶脚是要转码?还是什么

转一下码是一下:CGI::escape('your url')

Unknow user #4 March 10, 2014

EncodeURIComponent(

You need to Sign in before reply, if you don't have an account, please Sign up first.