通过get请求传递json参数

url:function(row){
   var a   = JSON.stringify(row.yq_ids);
   console.log(a);	
   return 'market/areaccount/overdue?yq_ids='+escape(a);
}

然后在overdue方法中将yq_ids转成数组:

$yq_ids = json_decode($_GET['yq_ids'],true);

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.