qs.stringify将对象转化为url格式`
const obj = {
age:18,
name:deng},
var str=qs.stringify(obj);//age=18&name=deng`;
}
JSON.stringify()将对象转化为Json格式;
JSON.stringify(obj);//'{"age":18,"name":"deng"}'
qs.stringify将对象转化为url格式`
const obj = {
age:18,
name:deng},
var str=qs.stringify(obj);//age=18&name=deng`;
}
JSON.stringify()将对象转化为Json格式;
JSON.stringify(obj);//'{"age":18,"name":"deng"}'