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!
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn