Guest User

Untitled

a guest
Dec 10th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. var favTagNodes = $('<div><a class="post-tag">** Error loading favorite tags. **</a></div>')
  2. .load ("/questions #interestingTags>a.post-tag", function (response, status, xhr) {
  3. var favoriteTags = favTagNodes.find ("a.post-tag").map ( function () {
  4. return this.textContent;
  5. } )
  6. .get ();
  7.  
  8. console.log ("favoriteTags: ", favoriteTags);
  9. } );
  10.  
  11. {
  12. "items": [
  13. {
  14. "tag_preference_type": "favorite_tag",
  15. "user_id": 9999999,
  16. "tag_name": "git"
  17. }, {
  18. "tag_preference_type": "favorite_tag",
  19. "user_id": 9999999,
  20. "tag_name": "go"
  21. }, {
  22. "tag_preference_type": "ignored_tag",
  23. "user_id": 9999999,
  24. "tag_name": "java"
  25. }
  26. ...
  27. ],
  28. "has_more": false,
  29. "quota_max": 10000,
  30. "quota_remaining": 9997
  31. }
Add Comment
Please, Sign In to add comment