Last active
December 22, 2016 04:04
-
-
Save gracefullight/5fb8c604d7515376dd73812e490f1ebc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var totalCount; | |
| var currentPageNum; | |
| var shownRowNum; | |
| for(var i=0, len=data.length; i<len; i++){ | |
| var index = (Number(totalCount)-(i+(currentPageNum-1)*shownRowNum)) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment