Created
June 13, 2024 03:13
-
-
Save ygweric/ef7dd63776822f47a6d044dd6ef28ce2 to your computer and use it in GitHub Desktop.
jquery批量获取seelctor的某个值
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
// chrome的console加载jquery.js 最新版本 | |
(function x(s){var c=document.createElement('script');c.src=s;document.getElementsByTagName('head')[0].appendChild(c);})('https://code.jquery.com/jquery-3.7.1.min.js') | |
// JOSN格式输出对应节点属性值 | |
JSON.stringify($('.download-link >a').map(function() {return $(this).attr('href')})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment