返回的數(shù)據(jù)是:{"0":[{"id":"1","name":"xxx"}],"1":[{"id":"1","name":"xxx"}],...,"refer":"","state":"fail"}前臺(tái)jquery怎么處理更新:跟蹤/common/AppframeController.class.php方法ajaxReturn(){}ThinkCMF增加了狀態(tài)信息,可以選擇注釋或者$data2=array("data"=>$data);$this->ajaxReturn($data2);取出{data:["data"],"refer":"","state":""}data字段數(shù)據(jù)
thinkCMF ajaxReturn返回json數(shù)據(jù) 帶state 如何過(guò)濾狀態(tài)信息 取得數(shù)據(jù)??
溫溫醬
2019-04-19 16:12:09