0
    nextPageURL = nextPage.find('a').attr('href') + '#searchResults';
    searchResults.append('<div class="moreList" />');
    $('.moreList').load(nextPageURL);
    var newHTML = $('.moreList').html().replace(/\s+<\/TD>/g,'');
    $('.moreList').html(newHTML);

这是它的要点。更多输出如下所示:

\n Android application design<\/a> <\/h3>\n

\n

Hourly<\/dt>\n
- Est. Time: Less than 1 week, 10 hrs\/week <\/dd>\n
- Posted <\/span> <\/dd>\n
- 3 Interviews<\/dd>\n <\/dl>\n <\/div> \n
\n \n Apply<\/a> \n <\/div>\n \n
<\/div>\n

帮助,会很棒!

4

1 回答 1

1

只是一个猜测,但如果你使用这种语法:

$('#result').load('ajax/test.html #container');

你肯定在#.

于 2012-07-16T17:51:41.213 回答