Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this one a typo? #70

Open
knowncold opened this issue Oct 4, 2016 · 1 comment
Open

Is this one a typo? #70

knowncold opened this issue Oct 4, 2016 · 1 comment

Comments

@knowncold
Copy link

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"]
@kunal8411
Copy link

You can access the query params like below:

let {params} = req.query

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants