urlString='http://localhost:8888/start?foo=bar&hello=world';console.log(url.parse(urlString,true).pathname);返回的是()
A. /start?foo=bar&hello=world
B. foo=bar
C. /start
D. oo=bar&hello=world
查看答案
表单提交的数据,服务器通过()获取。
A. req.url
B. req.string
C. req.query
D. req.body
以下哪项不是表单的三要素()
A. action
B. href
C. method
D. Enctype
Node.js中Server对象中的可触发事件中,当新连接创建后会被触发的是()
A. listening
B. connection
C. close
D. error
urlString = 'http://localhost:8888/start?foo=bar&hello=world';console.log(url.parse(urlString, true).query);返回的是()。
A. /start?foo=bar&hello=world
B. foo=bar
C. { foo: 'bar', hello: 'world' }
D. ?foo=bar&hello=world