` 如何给 tempArray 赋值然后返回,现在总是返回一个空数组
let tempArray = [];
news.toArray((err,items)=>{
items.map(x=>{
tempArray.push({
"title":x.title,
"content":x.content,
"createTime":x.createTime
})
})
})
return tempArray