1.json处理中文字幕(0.0)
1 foreach($row as $k=>$v){ 2 $row[$k]['title'] = urlencode($v['title']); 3 } 4 echo $json_arr = urldecode(json_encode($row));
2.$.Ajax(),$.post() 跨域:
$.ajax({ type: "Get", url: "http://www.sendnet.cn/?UserId=1001", cache: false, error: function () { }, jsonp: "callback", dataType: "jsonp", //瘪0.0 忘了类型 success: function (result) { alert(result.info); } });
0.0