刚接触LayUI,几次出现'返回的数据异常'问题,皆是因为数据的格式不对! 这里做个小笔记,一般的格式这个样子 $data_result = array( 'code'=>0, 'msg'=>'', 'count'=>100, 'data'=>'' );