【文件属性】:
文件名称:queryset:具有类似Django QuerySet语法的数据结构
文件大小:13KB
文件格式:ZIP
更新时间:2021-05-22 07:15:07
javascript json django django-rest-framework JavaScript
概述
queryset.js是具有类似语法的数据结构
它主要用于处理 响应
支持的查询:
not , isnull , in , range , lt , lte , gt , gte ,
startswith , istartswith , endswith , iendswith , contains , icontains , exact , iexact
样本
var qs = new QuerySet ( list )
qs . filter ( { profile__active : true } ) . values_list ( "name" ) . distinct ( )
// aggregate nested arrays
qs . sum ( "invoices__items__amount" )
// filter by nested arrays
qs .
【文件预览】:
queryset-master
----queryset.js(30KB)
----tests.js(11KB)
----queryset.min.js(9KB)
----.gitignore(23B)
----README.md(11KB)
----LICENSE.txt(1KB)