nodebeginner.org
nodebeginner.org copied to clipboard
Is this one a typo?
http://www.nodebeginner.org/index-zh-cn.html#whats-needed-to-route-requests I'm a beginner and I find something wrong when I console.log(querystring(string)["foo"] ); That querystring is not a function
url.parse(string).query | url.parse(string).pathname | | | | | ------ ------------------- http://localhost:8888/start?foo=bar&hello=world --- ----- | | | | querystring(string)["foo"] | | querystring(string)["hello"]
You can access the query params like below:
let {params} = req.query