A login page, written in react. After the page is generated, enter the user name and click the login page to login.
Here I want to implement a function that fills the username password with the JS script, and then triggers the click event of the submit button.
The username passwords in the page pass through
All can be assigned normally, as follows:
Then it will appear through the login button click event, as shown in the following picture:
Why is this??
Personal guess does not synchronize data to the react element bound model. Is there a solution?
This is a website made by others. It is the website produced by react that the file is found in it. My side wants to achieve analog user login, through jQuery operation DOM elements, fill data. Trigger the click event and log in by the user.
You guessed it right, and you didn’t see your code.
You may need this https://github.com/casperjs/c…
Do not try to use it
jsTo write a crawler, but you can think about it.
jsOr more restrictive