contacts=paginator.page(currentPage)
json_data=serializers.serialize("json",contacts,ensure_ascii=False)return HttpResponse(json_data,content_type=‘application/json;charset=utf-8‘)
django分页查询并返回jsons数据
原文:https://www.cnblogs.com/diaozhabing/p/10871194.html