js发送get请求在url后面添加参数为json对象报错解决方案?
(1)var obj1=JSON.stringify(obj);将对象转化成JSON字符串
(2)'${ctx}/gis/view?obj='+encodeURIComponent(obj1, 'utf-8');在请求中加上encodeURIComponent进行编码处理
js发送get请求在url后面添加参数为json对象报错解决方案?
(1)var obj1=JSON.stringify(obj);将对象转化成JSON字符串
(2)'${ctx}/gis/view?obj='+encodeURIComponent(obj1, 'utf-8');在请求中加上encodeURIComponent进行编码处理