Created
November 3, 2014 14:16
-
-
Save ethanfu/1f8ec5257ae49ed919c5 to your computer and use it in GitHub Desktop.
get wenku count
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
function ss(){ | |
var view_count = 0; | |
var donwload_count = 0; | |
$(".list-item .doc-view-count").each(function(){ | |
view_count += parseInt($(this).text()); | |
}); | |
$(".list-item .doc-download-count").each(function(){ | |
donwload_count += parseInt($(this).text()); | |
}); | |
return view_count+"\t"+donwload_count; | |
} | |
ss(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment