This afternoon to get a table paging function, in fact, a small function with JavaScript to write a small function can be achieved, but actually took me a long time, has been unable to achieve.
At first it was thought that the servlet was not fully embedded in the HTML format (because it was implemented directly in the servlet), and later the test found that the page could be displayed without a full format.
Then questioned whether JavaScript was wrong (because it didn't last long) and then re-wrote the test output JavaScript in the form of an external link, and found that there was nothing wrong with it, but it didn't respond after the button was clicked.
Finally I have doubts about this button, a look at the button display format is not wrong Ah, in the Web page to view the source code also found no problem. But one problem is that I have the name of this function function as the onclick duplicate, because at the beginning of the time to write for the sake of convenience, took the same name, then I think it will not be related to this name? Then try to change it a bit. Actually. It's ready!!
@[email protected]| | I almost cried out.
Think back, you can not make the same mistake again, the original function name is not and the onclick and other key words to repeat, so the next time to take the function name must pay attention, can not be duplicated with the keyword!