2013-03-28 36 views

回答

1

肯定的:

var $ = require('jquery'); 

$.get(URL, function(html) { 
    var $doc = $(html); 
    $doc.find('a').each(function(i, el) { 
    console.log('href', $(el).attr('href')); 
    }); 
}); 
+0

啊!當然這很簡單。 – forwardslash 2013-03-28 07:11:45

相關問題