As shown in the figure, the variables move and variable a are both defined within the function. The output prompt of a is not defined, but the output of move is normal. Doesn’t it mean that variables within the function cannot be accessed outside the function? Why does move work? Ask for answers
move is treated as
move is treated as
Can you explain in detailIt can be done in IE browser Access the element directly using the element's id, which is equivalent to the attribute of the window object
. For example, in the IE browser, 123 can pop up
<div id="asd">123</div><script type="text/javascript">alert(asd.innerHTML);</script>
move is regarded as
move is regarded as
move is treated as