Flip processing

xiaoxiao2021-03-06  39

1 Sort when pages: In order to achieve a variety of sorted display pages, page pages function has to increase this parameter to implement a plurality of sorting. So the original function [ Next page ] Change is as follows: [ Next ]. It looks quite good, but once it is running, it is wrong, saying that the page is more than 500, I will go to the JSP file, not so much, what is going on? It turns out that it refers to the generated HTML file. One found found that the third parameter did not quoted the quotation, and it could not be identified as a string. Plus, JavaScript only let the plus quotation mark, indicate the string, weird. After the plus, you are as follows: [ Next ]. Opening, okiedokie. Flip function: function rollPage (curPage, perPage, strOrderBy) {if (strOrderBy == "") strOrderBy = "POSTTIME DESC"; document.RollPageForm.CurrentPage.value = curPage; document.RollPageForm.CountPerPage.value = perPage; document . ROLLPAGEFORM.MYORDER.VALUE = StrORDERBY; Document.rollpageform.Submit ();

2 Click on the image after the image is used to control which page: