Skip to content

Instantly share code, notes, and snippets.

@justjavac
Last active October 18, 2020 07:27
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save justjavac/6985824 to your computer and use it in GitHub Desktop.
Save justjavac/6985824 to your computer and use it in GitHub Desktop.
获取QQ群通讯录
var ids = document.querySelectorAll(".member_id");
var names = document.querySelectorAll(".member_name");
var output = "", length = ids.length;
for(var i=0; i<length; i++){
output += ids[i].innerHTML.slice(1,-1) + ":" + names[i].innerHTML + "\n";
}
console.log(output);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment