problem description
I defined a global variable on the index.html page, and then introduced a js file at the bottom of the page.
I put a button on the index.html page, and I clicked it to change the value of the variable.
is then handed over to a function in the imported js file to determine the variable. If it is a certain value, a different response occurs, but the variable in the js file is always the default value at initialization. What"s going on?