weixin_33694172 2014-11-16 22:13 采纳率: 0%
浏览 44

Ajax获取请求查询

$.ajax({
  type: "GET",
  url: "http://www.roblox.com/My/GroupAdmin.aspx?gid=148530",
  data: {   javascript:__doPostBack('ctl00$ctl00$cphRoblox$cphMyRobloxContent$GroupMemberAdminPane$dlMembers_Footer$ctl02$ctl00','')        }
})
  .done(function( msg ) {
        $(msg).find('.member-name-container').children('[title]').each(function() {
          console.log( $(this ).text() )
   var g = $(msg ).text()
  });
});

How exactly do I make this log the data I want it to find after it does the postback? Its clearly supposed to log in console. I'm trying to find all the usernames in this group on ROBLOX. Help as fast as possible, really need to finish this project. How do I fix this?

  • 写回答

1条回答 默认 最新

  • weixin_33693070 2014-11-16 22:32
    关注

    well the $() in jQuery is a selector which applies to classes, ids and much more in your DOM. you can't parse a text with just putting it inside $() - that's not how it works since you don't have your resulting html in your DOM. so you have to parse it like text, not like it was in your DOM.

    评论

报告相同问题?