0

Does anyone know if I have a url such as the following what should be route set in node express app.

http://abc.com/fbauth#access_token=<some random number>.

So if I put route as "/fbauth" in express/node app then it cannot parse the rest of the url, neither with req.params nor with req.query

any help appreciated...

4

1 回答 1

1

# 是保留的,虽然对 URI 有效,但它不会在对后端的请求中提交。它对于前端技巧非常有用,例如单页 Web 应用程序中的页面锚点和导航。

如果您需要将 args 传回,则使用 ? 符号而不是 # 会将 access_token 传递给节点应用程序。

于 2013-10-09T20:35:55.167 回答