Created
September 21, 2017 15:10
-
-
Save yangshun/8d07a902975fe03de5328790698e01ac to your computer and use it in GitHub Desktop.
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
let res = ''; | |
$('#question_list tbody tr').each(function () { | |
const $td = $(this).find('td'); | |
const $link = $($td[2]).find('a').first(); | |
res += `[${$($td[1]).text().trim()} - ${$link.text()}](https://leetcode.com${$link.attr('href')})\n`; | |
}); | |
console.log(res); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment