网页代码如下:
<div id="content">
<div class="container-fluid">
Slots
<p>The current jackpot is 23220!<p/>
<p>You lose.</p>
<form method=post action=/games/slots.php>
<input type=hidden name='hash_sub' value='MjEzOA=='>
<input type=hidden name='act' value='spin'>
<input type=submit value='Spin again!'>
</form>
<a href='slots.php'>Go Back</a>
</div>
</div>
我的代码:
setInterval(function solo() {
jQuery('content').children('submit[value="Spin again!"]').click();
}, 1000);
我不确定我错过了什么,页面加载但根本没有点击按钮。没有控制台日志错误。