题目内容

表单提交的数据,服务器通过()获取。

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

关于node.js的原生获得post数据的方式,正确的是()。

A. 通过req.body对象获得。
B. 通过解析req.url获得
C. 通过req.on监听data事件来获取
D. 必须在表单上添加enctype属性为multipart/form-data才能获得

答案查题题库