I encountered a strange problem in the previous incident. I wrote an onload event in the jsp page and found that it didn't work. Looking at the source file, there was no method name after bady's onload? ? ?
I'm confused Solution,
So try
< /body>
< script language="javascript">
window.onload = getState()
< /script>
It’s actually no problem... , why is this? ?
It turns out that
There is a damn window in this js. .onload = sorttable.init; This js is used in other pages, a table operation js down on the Internet.
At least give you a reminder, it is very likely that it has been used in other places, causing conflicts!