Skip to content

Instantly share code, notes, and snippets.

@yangshun
Created September 21, 2017 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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