$.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).‘)‘); }
本文出自 “稀饭” 博客,请务必保留此出处http://zunfengke.blog.51cto.com/6285721/1396842