<script>function fun1(){var str = '[{"uname":"王宝强","day":"2012/06/17"},{"uname":"李连杰","day":"2012/08/12"}]'; var jsonList=eval("("+str+")"); //转换为json对象for(var i=0;i<jsonList.length;i Read More
$arrprint_r之后是这样的:array('a'=>1,'b'=>2,'c'=>3,'d'=>4,'e'=>5); 怎么把它print_r之后的东西保存下来呢??变成$a="array('a'=>1,'b'=>2,'c'=>3,'d'=>4,'e'=>5);"解决方法:var_export()会一直保留着结构化形式存储数据.$a=var_export( Read More