The js onload event does not work for sample analysis
- 2020-03-26 21:21:38
- OfStack
The previous section of the event encountered a strange problem, JSP page to write an onload event, found that it did not work, look at the source file, bady's onload after there is no method name???
< Body onload=" this is actually empty "margin="0" leftmargin="0" topmargin="0" rightmargin="0">
Puzzled,
So the test
It's okay... Why is that?
The original is < Script SRC = "< % % = path > / js/sorttable. Js "> < / script>
Window.onload = sorttable. Init; This js is used in other pages, web down a table operation js.
At least give you a hint, it's probably been used somewhere else, causing a conflict!
< Body onload=" this is actually empty "margin="0" leftmargin="0" topmargin="0" rightmargin="0">
Puzzled,
So the test
</body>
< script language="javascript">
window.onload = getState()
< /script>
It's okay... Why is that?
The original is < Script SRC = "< % % = path > / js/sorttable. Js "> < / script>
Window.onload = sorttable. Init; This js is used in other pages, web down a table operation js.
At least give you a hint, it's probably been used somewhere else, causing a conflict!