将JQM滑动事件添加到listview链接
我试图找到有关如何编写jquery移动滑动事件代码的任何示例。 虽然我理解使用滑动和敲击等的原理,但我正在努力让一个人工作。 如果有人能告诉我一个使用href或listview href滑动的小例子,我将不胜感激。 谢谢
- Requests
Box requests include, Retrieval, Return, New Intake
- Control Panel
Add Departments, Change Password etc
- Information
System messages, announcements are shown here
pageCreate() { $("#listitem").swiperight() { $.mobile.changePage("requests.php"); } }
实例:
JS:
$("#listitem").swiperight(function() { $.mobile.changePage("#page1"); });
HTML:
- Swipe Right to view Page 1
- Navigation
- Back to the Home Page
Yeah!
You Swiped Right to view Page 1
有关:
- 添加jquery移动滑动事件
根据文件,应该很容易
pageCreate() { $("#listitem").swiperight() { $.mobile.changePage("url"); } }