Created
February 6, 2017 09:39
-
-
Save GZShi/934fffad3ea9e784571fccb1c95c6844 to your computer and use it in GitHub Desktop.
计算QQ邮箱信用卡账单总额
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
Array.prototype.map.call( | |
document.querySelectorAll("td.bill_balance span.info_value span.currency_rmb"), | |
(e,i)=>+e.innerText.replace("¥ ", "").replace(" (人民币)", "").replace(",", "") | |
).reduce((prev,curr)=>prev+curr,0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment