Home > Web Front-end > JS Tutorial > It's so easy to get votes with just one js code

It's so easy to get votes with just one js code

一个新手
Release: 2017-09-25 09:55:27
Original
4179 people have browsed it


1. Take a look at the renderings first

Note that the penultimate option automatically increases votes from 97 to more than 100~
Its so easy to get votes with just one js code

2. Interpretation of the code is just one sentence

setInterval(function(){$(“#vote_5”).click()},1000);
Copy after login

: 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. Problem-solving ideas

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template