var i = 1; jQuery(".ndownlist:last [href]").each(function() { if (null != this.title) { if (this.title == "迅雷離線下載") { console.info(i + this.href); i = i + 1; } } });