var arr=transArr({$array|json_encode=true}); function transArr(obj) { var tem=[]; $.each(obj, function(i) { tem[i]=obj[i]; }); return tem; }