查看“︁Node.js/express/请求”︁的源代码
来自康健生活
←
Node.js/express/请求
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
== 引言 == == 路径请求== 路径请求及对应的获取路径有以下几种形式: {{Leftrightflex|<syntaxhighlight lang="javascript"> req.query.q req.query.order req.query.shoe.color req.query.shoe.type req.body.user.name req.body.user.email req.body.name req.params.name req.params[0] req.param(name) req.param('name') req.param('name') req.param('name')</syntaxhighlight>|{{consoleout|<pre"> "tobi ferret" // GET /search?q=tobi+ferret "desc" // GET /shoes?order=desc&shoe[color]=blue&shoe[type]=converse "blue" "converse" "tobi" // POST user[name]=tobi&user[email]=tobi@learnboost.com "tobi@learnboost.com" "tj" // GET /user/tj "javascripts/jquery.js" // GET /file/javascripts/jquery.js "tobi" // ?name=tobi "tobi" // /user/tobi for /user/:name </pre>}}}}
此页面嵌入的页面:
模板:Consoleout
(
查看源代码
)
模板:Double-columns
(
查看源代码
)
模板:Double-columns/style.css
(
查看源代码
)
返回
Node.js/express/请求
。
导航菜单
康健生活
搜索
user-page
通知
user-interface-preferences
个人工具
登录
五一
多读书,多运动,多到远处走走,再看看不一样的世界。