0
点赞
收藏
分享

微信扫一扫

我就非要在get请求下传递json数据,结果报错了?


let filters = '{"groupOp":"AND","rules":[{"field":"apptype","op":"eq","data":"android"}]}';
//对传递数据进行转码操作即可
filters = encodeURIComponent(filters,"utf-8")
//首先,先确保你这里的filters是正确的JSON格式数据
var downBook = $("<a href='"+basePath+"/common/exportExcels?filters="+filters+"'

举报

相关推荐

0 条评论