我正在尝试使用js浏览下一页。它在导航方面运行良好,但唯一的问题是,当下一个"下一个"按钮不可用。如果" next>>"我们能否阻止它不可用目前它的循环仍然是无限的:(
var clickNext;
clickNext= headerCode;
clickNext+= "TAG POS=1 TYPE=STRONG ATTR=TXT:next<SP>»" + "\n";
clickNext+= "WAIT SECONDS=5"+ "\n";
var nextLink = 1;
for(var i=1; i<=99999999; i++)
{ if(nextLink = 1)
iimPlay(clickNext);
if(nextLink === 0)
break;}
答案 0 :(得分:0)
var clickNext;
clickNext = headerCode;
clickNext += "TAG POS=1 TYPE=STRONG ATTR=TXT:next<SP>»" + "\n";
clickNext += "WAIT SECONDS=5" + "\n";
var nextLink = 1;
main : {
for (var i = 1; i <= 99999999; i++) {
if (nextLink = 1)
iimPlay(clickNext);
if (nextLink === 0)
break main;
}
}
试试这个。