Skip to content

Instantly share code, notes, and snippets.

@yangshun
Created September 21, 2017 15:10
Show Gist options
  • Save yangshun/8d07a902975fe03de5328790698e01ac to your computer and use it in GitHub Desktop.
Save yangshun/8d07a902975fe03de5328790698e01ac to your computer and use it in GitHub Desktop.
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