摘要: ``` $(document).ready(function () { $('#example').DataTable({ "ajax": "http://127.0.0.1:8080/api/resources/", "columns": [ { "data": "name", ... 阅读全文
posted @ 2018-09-07 20:07 idlewith 阅读(132) 评论(0) 推荐(0) 编辑
摘要: ``` class ResourceSetView(viewsets.ModelViewSet): queryset = models.Resources.objects.all() serializer_class = serializers.ResourceSerializer def list(self, request, *args, **kwargs): ... 阅读全文
posted @ 2018-09-07 19:15 idlewith 阅读(132) 评论(0) 推荐(0) 编辑