JSONP 简洁交互(PHP)
$.ajax({ type : "get", dataType : 'jsonp', url: url, jsonpCallback: "callback", data: { catid: n_catid, id: '28,38' }, success: function(data) { if ( data.status) { } });
public function actionGet() { $json = $model->getListDataById($id, $catid); die('callback'.'('.json_encode($json).')'); }
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。