基础 Node 和 Express - 从客户端获取输入的查询参数

I can display it when I run / name?first=Mick&last=Jagger on replit, but I can’t pass the submission display.

你的项目链接

solution: boilerplate-express - Replit

你的浏览器信息:

用户代理是: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36

挑战: 基础 Node 和 Express - 从客户端获取输入的查询参数

挑战的链接:

你需要将 GET 请求的返回值设置为 JSON 的格式,现在返回的格式是 “Mick Jagger”,这是一个字符串。

You need to set the return value of the GET request to the format of JSON, and now the return format is “Mick Jagger”, which is a string.