let tempArray = []
news.toArray((err,items)=>{
items.map(x=>{
tempArray.push({
"title":x.title,
"content":x.content,
"createTime":x.createTime
})
})
})
return tempArray
请问怎样可以使tempArray被赋值之后再传回,现在这总是传回一个空数组