<a href="javascript:void(0);" id="next" class="btn-red">next page</a>
on the page There is a toolbar with a "Next Page" button. Clicking this button will refresh the next page of information.
Below I find the next related parts in js:
next:function(n){return ir(n,"nextSibling")}
function ir(n,t){do n=n[t];while(n&&n.nodeType!==1);return n}
But based on this information, I still can't know how the page is calculated after clicking "Next Page". Can anyone help me analyze it? I just started JavaScript and only understand the basic syntax.
Attached is the web address: http://www.ikanman.com/comic/...
is the toolbar on the page.
The code you are looking for is just the next method of jQuery and has nothing to do with turning to the next page.
What you are looking for is this sentence:
$("#next").click(function(){SMH.next()})
Isn’t it just switching a picture? Click to switch the src address of the image tag to point to, and it will be fine
The code you uploaded is from jquery.min.js. Next is to operate the next sibling node. You need to encapsulate an event yourself and bind it to the a element