我需要为页面中的整个 div 元素添加延迟加载,而不是单独的延迟加载图像。
你能帮我一些插件或自己的 js 代码。
具有如下所述的文件列表。
文件1:
{
id:1,
PostList:[
{
postname:"aaa",
lastdatetime:2017-07-13T17:10:25+05:30,
sname:"sas"
},
{
postname:"aaa1",
lastdatetime:2017-07-14T17:10:25+05:30,
sname:"sasadd"
},
{
postname:"aaa2",
lastdatetime:2017-07-10T17:10:25+05:30,
sname:"weq"
}
]
}
Run Code Online (Sandbox Code Playgroud)
文件2:
{
id:2,
PostList:[
{
postname:"aaa",
lastdatetime:2017-07-13T17:10:25+05:30,
sname:"sas"
},
{
postname:"aaa1",
lastdatetime:2017-07-14T17:10:25+05:30,
sname:"sasadd"
},
{
postname:"aaa2",
lastdatetime:2017-07-10T17:10:25+05:30,
sname:"weq"
}
]
}
Run Code Online (Sandbox Code Playgroud)
我需要一个帖子名称列表,该列表等于“aaa”且 orderby lastdatetime。
我能够得到查询
select f.lastdatetime,f.postname
from c
join f in c.PostList
where f.postname='aaa'
Run Code Online (Sandbox Code Playgroud)
但我需要使用 orderby lastdatetime 获取列表。
当我尝试以下查询时,出现错误
不支持过度相关集合的排序
select f.lastdatetime,f.postname
from c
join f in c.PostList
where f.postname='aaa' ORDER BY f.lastdatetime ASC
Run Code Online (Sandbox Code Playgroud)
有人有想法可以通过吗?