我正试图利用一名有关数据问题的“ j”挑选人,我从“ja”电话回来。
Here is the code I have -
$.ajax({
url: moo.html ,
success: function ( code )
{
var divs = $(code).filter(function(){ return $(this).is( div ) });
console.log( divs ); // gives me back entire object
console.log( $(divs[0]) ); // gives me the first object
// console.log( $(divs[0]).( #bar )); // error
// console.log( $(divs #foo #bar)); // error
// console.log( $(divs).(#foo #bar)); // error
}
});
</script>
moo.html -
<div id= foo ><div id= bar >123</div></div><div id= biz ><div id= dev >345</div></div>
因此,我如何能够在oo干 within中 gr取第html条的内容(123条)。