Last active
July 10, 2021 04:10
-
-
Save sdwh/5ebabd7a450846721086e32ddb9b28c8 to your computer and use it in GitHub Desktop.
[JS Dom Manipulate] #JS
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
$.each($("a"), function(_, ele){ console.log(decodeURI(ele.text.trim()), ":", ele.href.trim())}) |
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
document.querySelectorAll('h2 , h3').forEach(x => console.log(x.tagName, x.textContent)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment