7-3带参数的get方法页面无法返回
来源:7-3 带参数的get方法实现

慕勒9552210
2019-06-26
学习的时候发现,7-3带参数的get方法页面无法返回
startupGet.json如下:
[{
“description”: “模拟一个没有参数的get请求”,
“request”: {
“uri”: “/getdemo”,
“method”: “get”
},
“response”: {
“text”: “这是一个没有入参的get请求”,
“headers”: {
“Content-Type”: “text/html;charset=gbk”
}
}
},{
“description”: “模拟一个带参数的get请求”,
“request”: {
“uri”: “/getwithparam”,
“method”: “get”,
“queries”:{
“name”:“huhansan”,
“age”:“18”
}
},
“response”: {
“text”: “我胡汉三又回来了”
}
}
]
不知道json哪里出错了,应该是按照老师的提示一步步写的呢,麻烦帮看下
写回答
1回答
-
慕勒9552210
提问者
2019-06-26
/getdemo 这个可以返回的
00
相似问题