摘要: 1 item2 =urlencode($this->item2); 9 $str_json= json_encode($this);10 //url解码,转完json后将各属性返回,确保对象属性不变11 $this->item2 =urldecode($this->item2);12 returnurldecode($str_json);13 }14 }15 16 $c=new myClass();17 echo json_encode($c);18 echo'';19 echo$c->to_json();20 echo'';21 ech 阅读全文
posted @ 2014-04-09 18:11 醉洒脱 阅读(331) 评论(0) 推荐(0) 编辑