当我将.each(function(i, el) {
$.get(el.href, function(body) {
放在控制台上时,我一直收到一个SyntaxError,请帮助谢谢。
var emails = "";
$(".txt").find("a.hdrlnk").map(function(i, el) { return el })
.each(function(i, el) {
$.get(el.href, function(body) {
$.get( $(body).find("#replylink")[0].href, function(linkbody) {
var email = $(linkbody).find('a[href^="mailto:"]')[0].innerText + ',`enter code here`';
emails += email;
})
})
})
setTimeout(function() { `enter code here`
console.log('emails: ' + emails);
}, 5000)