jQuery Mobile C...login
jQuery Mobile Classic Tutorial
author:php.cn  update time:2022-04-11 13:58:34

jQuery Mobile events



jQuery Mobile Event Reference Manual

The following list shows all jQuery Mobile events.

Note: Please use the on() method to bind events.

EventDescription
hashchangeEnable tagging #hash history, the hash value will Changes that occur on a separate click, such as a user clicking the back button, will be handled through the hashchange event.
navigate Events that wrap hashchange and popstate
orientationchangeOrientation change event, in Triggered when the user rotates the mobile device vertically or horizontally.
pagebeforechangeEvent triggered before page switching. Use $.mobile.changePage() to switch pages. This method triggers two events, the pagebeforechange event before the switch, and the pagechange (success) or pagechangefailed (failed) after the switch is completed.
pagebeforecreateWhen the page is initialized, triggered before initialization.
pagebeforehideEvent triggered after the page is switched and before the old page is hidden.
pagebeforeloadTriggered before the load request is issued
pagebeforeshow Before the page is displayed after switching , the triggered event.
pagechangeEvent triggered after the page switch is successful. Use $.mobile.changePage() to switch pages. This method triggers two events, the pagebeforechange event before the switch, and the pagechange (success) or pagechangefailed (failed) after the switch is completed.
pagechangefailedEvent triggered when page switching fails. Use $.mobile.changePage() to switch pages. This method triggers two events, the pagebeforechange event before the switch, and the pagechange (success) or pagechangefailed (failed) after the switch is completed.
pagecontainerbeforeloadTriggers before any request is loaded
pagecontainerloadWhen the page loads successfully And trigger after inserting into DOM
pagecontainerloadfailedTrigger when the page fails to load
pagecreatein The event is triggered after the page is successfully created, but before the enhancement is completed.
pagehideEvent triggered after the old page is hidden after the page is switched.
pageinit Deprecated after version 1.4.0, use pagecreate instead. Events triggered when the page is initialized.
pageload Deprecated after version 1.4.0, use pagecontainerload instead. Triggered after the page is completely loaded successfully.
pageloadfailed Deprecated after version 1.4.0, use pagecontainerloadfailed instead. Triggered if the page request fails.
pageremoveFires before the window view removes the external page from the DOM.
pageshowTriggered on the "arrival" page after the transition animation is completed.
scrollstartFires when the user starts scrolling the page.
scrollstopFires when the user stops scrolling the page.
swipeFires when the user swipes horizontally on the element.
swipeleftFires when the user swipes the element from the left beyond 30px.
swiperightTriggered when the user swipes the element from the right beyond 30px.
tapTriggered when the user taps an element.
tapholdTriggered when an element taps an element and holds it for one second.
throttledresizeEnable taggable #hash history
updatelayoutShow/hide by dynamic Triggered by the jQuery Mobile component of the content.
vclickVirtualized click event handler
vmousecancelVirtualized mousecancel event Handler
vmousedownVirtualized mousedown event handler
vmousemoveVirtualized mousemove event handler
vmouseoutVirtualized mouseout event handler
vmouseovervirtual Virtualized mouseover event handler
vmouseupVirtualized mouseup event handler

php.cn