node获取URL数据

时间:2018-05-13 12:57:03   收藏:0   阅读:152

req.method  -->GET

req.hostname  -->127.0.0.1

req.originalUrl  -->/test/test/test?name=wang

req.protocol  -->http

req.path -->/test/test/test

req.params -->/:test/:class  -->req.params.test;req.params.class

req.query   -->{‘name‘:‘wang‘}

原文:https://www.cnblogs.com/TomAndJerry/p/9031744.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!