Home >Web Front-end >JS Tutorial >It's so easy to get votes with just one js code
Note that the penultimate option automatically increases votes from 97 to more than 100~
setInterval(function(){$(“#vote_5”).click()},1000);
: Set a loop timer that executes once per second, execute an anonymous method, find the button with the ID vote_5 in the anonymous method, and simulate a click event.
3.1. Check through the Chrome browser to see which element triggers the voting event and find out this element.
3.2. Use js code to simulate a click event of the control in the Console and verify whether it is valid.
3.3. Write a for loop or timer to automatically brush tickets!
The above is the detailed content of It's so easy to get votes with just one js code. For more information, please follow other related articles on the PHP Chinese website!