Created
October 13, 2017 01:34
-
-
Save qianlongzt/18f6c655581fdf391642a7a27a059fe6 to your computer and use it in GitHub Desktop.
get the number of your country ip addrs from http://www.nirsoft.net/countryip/cn.html
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
doc = document.getElementsByTagName("table")[6].children[0]; | |
total = 0 | |
for(i = 1;i< doc.children.length; i++) { | |
total += parseInt(doc.children[i].children[2].innerText) | |
} | |
alert(total) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment