我在页面上有下面的按钮。当这个页面被加载时,我想要下面的按钮被自动点击。我试过在网络上的各种建议,但我无法找到解决方案。任何帮助表示赞赏。如何在淘汰赛中自动点击按钮js
<a data-bind="click: $root.addtocart" class="w-button btn-large"
style="text-decoration: none!important;" id="redeemButton">
Redeem Now
</a>
你可以在页面加载时调用addtocart()方法 – Uday
嗨,你可以做这样的事情.... http://stackoverflow.com/questions/18646881/auto-click-button-element-on-page-load-using-jquery –
可能重复的[页面加载时自动点击按钮元素使用jQuery](http://stackoverflow.com/questions/18646881/auto-click-button-element-on-page-load-using-jquery) –