12 05 2015

今天碰到个问题,控制器接收到的json串不能用json_decode解析,

后来发现要用函数重新编码 

      $hidfreightsett=html_entity_decode($_POST['hidFreightSettings']);
             $s= json_decode($hidfreightsett,true);

这样就好了,记录一下。

发表评论