orderBy('creatrTime','desc')怎么失效了?
发布于 5 年前 作者 dguo 9044 次浏览 来自 官方Issues

没错误但是就是不可以倒序显示

app.router('list'async (ctx, next) =>{
    let blogList = await cloud.database().collection('blog')
    .skip(event.start)
    .limit(event.count)
    .orderBy('creatrTime','desc')
    .get().then((res) => {
     return res.data
    })
    ctx.body = blogList
  })
1 回复

说实话,我第一眼看的是creatr,仅此怀疑一下是拼写错误。

回到顶部