如何删除列表框中的所有数据。尚不清楚,还有其他一些值只是希望仅显示此数据。只是想一次将它们全部删除。
答案 0 :(得分:0)
您可以尝试使用此代码
[
{
_id: "1a2b3c4d5e6f7g8h9i",
name: "Jane Doe",
total: 7384,
// next line is what I'm looking for
// rank: 0 <-- it's the first item in an array after $sort
},
{
_id: "a1b2c3d4e5f6g7h8i9",
name: "John Doe",
total: 7370,
// next line is what I'm looking for
// rank: 1 <-- it's the second item in an array after $sort
},
...
]