cursor可以往回找否??# Database - 数据库
a*r
1 楼
working on a project: using server side javascript to do a
database query.
the output page will show 5 records one time with a "less" and a
"more" button. When user clicks "more" button, i can use cursor.next()
to get the next 5 records. But how can i return back to previous 5
records if user clicks "less" button without querying database again?
Any ideas?
多泄了.
database query.
the output page will show 5 records one time with a "less" and a
"more" button. When user clicks "more" button, i can use cursor.next()
to get the next 5 records. But how can i return back to previous 5
records if user clicks "less" button without querying database again?
Any ideas?
多泄了.