A simple example. A web page have A.h HTML and a. s files on A web page with A click event. Click get the B.h after sending A HTML and B.j s B.j s defined in the global variable and method names are same and a. s.
Don't know when was the last time after the request of the HTML, js, CSS files, such as go to which. So worry about the problem of variable, or method name name repetition
CodePudding user response:
After completion of A page is loaded, js files are parsed into the memory,If the loading B.j s again, will also new js file to load the video content into memory, so the memory, variable and method names if there are conflicts, are new to cover the old,
Has nothing to do with the file
CodePudding user response: