您好,欢迎访问一九零五行业门户网

jqgrid显示不了数据

jqgrid显示不数据,请各位大大帮忙看看
无标题文档

0) { $total_pages = ceil($count / $limit); } else { $total_pages = 0; } if ($page > $total_pages) $page = $total_pages; $start = $limit * $page - $limit; if ($startpage = $page; $responce->total = $total_pages; $responce->records = $count; $i = 0; while ($row = mysql_fetch_array($result, mysql_assoc)) { $responce->rows[$i]['id'] = $row[id]; $opt = 修改; $responce->rows[$i]['cell'] = array ( $row['sn'], $row['title'], $row['size'], $row['os'], $row['charge'], $row['price'], $opt ); $i++; } //print_r($responce); echo json_encode($responce); function unidecode($str, $charcode) { $text = preg_replace_callback(/%u[0-9a-za-z]{4}/, toutf8, $str); return mb_convert_encoding($text, $charcode, 'utf-8');}function toutf8($ar) { foreach ($ar as $val) { $val = intval(substr($val, 2), 16); if ($val $total_pages) $page = $total_pages; $start = $limit * $page - $limit; if ($startpage = $page; $responce->total = $total_pages; $responce->records = $count; $i = 0; while ($row = mysql_fetch_array($result, mysql_assoc)) { $responce->rows[$i]['id'] = $row[id]; $opt = 修改; $responce->rows[$i]['cell'] = array ($row['sn'],$row['title'],$row['size'], $row['os'], $row['charge'], $row['price'],$opt); $i++; } echo json_encode($responce);?>
{page:1,total:2,records:14,rows:[{id:1,cell:[1001,\u82f9\u679ciphone 4s\uff0816gb\uff09,3.5\u82f1\u5bf8 960x640\u50cf\u7d20 ,ios 5.0,1420mah,5150,\u4fee\u6539]},{id:2,cell:[1002,\u4e09\u661fi9100 galaxy sii\uff0816gb\uff09,4.3\u82f1\u5bf8 800x480\u50cf\u7d20 ,android os 2.3 ,1650mah ,3790,\u4fee\u6539]},{id:3,cell:[1003,htc g11\uff08incredible s\uff09,4\u82f1\u5bf8 800x480\u50cf\u7d20,android os 2.2 ,1450mah,2232,\u4fee\u6539]},{id:4,cell:[1004,\u9b45\u65cfm9\uff088gb\uff09,3.5\u82f1\u5bf8 960x640\u50cf\u7d20,android os 2.3 ,1370mah,1729,\u4fee\u6539]},{id:5,cell:[1005,\u5c0f\u7c73m1\uff08miui\uff09,4\u82f1\u5bf8 854x480\u50cf\u7d20,miui+\u539f\u751fandroid,1930mah,1999,\u4fee\u6539]},{id:6,cell:[1006,\u8bfa\u57fa\u4e9ac5-03,3.2\u82f1\u5bf8 640x360\u50cf\u7d20 ,symbian s60v5,1000mah,1164,\u4fee\u6539]},{id:7,cell:[1007,\u6469\u6258\u7f57\u62c9xt910\uff08droid razr\uff09,4.3\u82f1\u5bf8 960x540\u50cf\u7d20 ,android os 2.3 ,1780mah,3700,\u4fee\u6539]},{id:8,cell:[1008,\u8bfa\u57fa\u4e9an8,3.5\u82f1\u5bf8 640x360\u50cf\u7d20 ,symbian^3 ,1200mah,2302,\u4fee\u6539]},{id:9,cell:[1009,\u534e\u4e3au8860 honor\uff08\u8363\u8000\uff09,4\u82f1\u5bf8 854x480\u50cf\u7d20,android os 2.3,1930mah,1889,\u4fee\u6539]},{id:10,cell:[1010,\u4e09\u661fw999,3.5\u82f1\u5bf8 800x480\u50cf,android os 2.3 ,1500mah ,12340,\u4fee\u6539]},{id:11,cell:[1011,\u9177\u6d3en900+,3.2\u82f1\u5bf8 480x320\u50cf ,windows ce 6.0 ,1500mah ,6180,\u4fee\u6539]},{id:12,cell:[1012,\u9ed1\u83939800\uff08torch\uff09,3.2\u82f1\u5bf8 480x360\u50cf\u7d20,blackberry os 6,1300mah,4900,\u4fee\u6539]}]}
可以显示了,我把那些转换函数都删除了
请参考jqgrid中文demo:http://blog.mn886.net/jqgrid/
其它类似信息

推荐信息