Dwz (Jui) determines whether the maximum page number is exceeded

Source: Internet
Author: User

ModifyCode:

$ This. find (setting. jumpto $ ). each (function () {var $ this = $ (this); var $ inputbox = $ this. find (": Text"); var $ button = $ this. find (": button"); $ button. click (function (event) {varpagenum = $ inputbox. val (); If (pagenum & pagenum. ispositiveinteger () {// determines whether it is greater than the total number of pages. If it is greater than the total number of pages, go to the first page @ ketayao if (pagenum> PC. numpages () {pagenum = 1;} // determine whether the page number is greater than the total number of pages. If the page number is greater than the total number of pages, go to the first page @ ketayao dwzpagebreak ({targettype: pc.tar GetType (), Rel. REL (), data: {pagenum: pagenum}) ;}}; $ inputbox. keyup (function (event) {If (event. keycode = dwz. keycode. enter) $ button. click ();});});

Of course, you can also perform other jump logic.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.