Created
March 31, 2017 03:14
-
-
Save rocka/c3138d73d4ba901531a580be1d6363de to your computer and use it in GitHub Desktop.
calc total credit in zfjw
This file contains 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
javascript:(function(){ | |
var total=0; | |
[].forEach.call( | |
document.getElementById('iframeautoheight').contentDocument.getElementsByClassName('datelist')[0].rows, | |
(e, i) => i ? total+=+e.cells[5].innerText : null | |
); | |
alert(`Total credit is ${total}`); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment