vara={"name":"tom","sex":"男","age":24};varurl='api/getList/type'怎么样把对象a拼接到URL的后面得到'api/getList/type?param=%7B"name":"tom","sex":"男",age":24%7D'试过下面的写法,但是得不到api/getList/type?param=%7B"name":"tom","sex":"男",age":24%7D这样的,请帮忙瞧瞧vars='?'+'param='+JSON.stringify(a)url=`api/getList/type${s}`
不负相思意
相关分类