×
jQuery Mobile 教程jQuery Mobile 简介jQuery Mobile 安装jQuery Mobile 页面jQuery Mobile 页面切换jQuery Mobile 按钮jQuery Mobile 按钮图标jQuery Mobile 工具栏jQuery Mobile 导航栏jQuery Mobile 可折叠块jQuery Mobile 表格jQuery Mobile 网格

jQuery Mobile 列表

jQuery Mobile 列表视图jQuery Mobile 列表内容

jQuery Mobile 表单

jQuery Mobile 表单基础jQuery Mobile 表单输入jQuery Mobile 表单选择jQuery Mobile 表单滑动条

jQuery Mobile 主题

jQuery Mobile 主题

jQuery Mobile 事件

jQuery Mobile 事件jQuery Mobile 触摸事件jQuery Mobile 滚屏事件jQuery Mobile 方向改变事件jQuery Mobile 实例jQuery Mobile Data 属性jQuery Mobile 图标jQuery Mobile 事件jQuery Mobile页面事件jQuery Mobile CSS 类

jQuery Mobile swiperight 事件


jQuery Mobile 事件jQuery Mobile 事件


实例

在元素<p>上水平向右滑动隐藏它:

$("p").on("swiperight",function(){
  $(this).hide();
});

尝试一下 »

定义和用法

swiperight 事件是指在一秒内水平向右拖拽大于30px(垂直方向拖拽小于75px)时触发。

相关事件:

  • swipe - 指在一秒内,水平方向拖拽大于30px或垂直方向拖拽小于75px时触发的事件。
  • swipeleft - 指在一秒内,水平方向向左拖拽大于30px时触发的事件。

语法

$("selector").on("swiperight",function(event){...})

参数 描述
function(event) 必须。指定 swiperight 事件触发时执行的函数。

该函数有可选的事件对象 ,事件对象可以是任何 jQuery 事件属性 (例如 event.target, event.type, 等)。更多信息请查阅 jQuery 事件参考手册


实例

更多实例

事件对象
使用 event.target 属性返回swiperight事件触发的DOM元素。


jQuery Mobile 事件jQuery Mobile 事件


分类导航

关注微信下载离线手册

bootwiki移动版 bootwiki
(群号:472910771)