This is not a function with parameters. You are directly executing a function with parameters. Didn’t you realize that_changeis executed without waiting for the click to start?
The second way to write it is to wrap this method with a function, and execute this function when clicked.
This is not a function with parameters. You are directly executing a function with parameters.
Didn’t you realize that
_change
is executed without waiting for the click to start?The second way to write it is to wrap this method with a function, and execute this function when clicked.
Let’s take a look at the relevant basics.