当前位置:嗨网首页>书籍在线阅读

05-在移动元素上使用bind ()管理事件

  
选择背景色: 黄橙 洋红 淡粉 水蓝 草绿 白色 选择字体: 宋体 黑体 微软雅黑 楷体 选择字体大小: 恢复默认

10.2 在移动元素上使用 bind () 管理事件

除了 draggable (options) 中的 options 参数提供的事件方法外,jQuery UI还允许使用 bind () 方法来管理这些事件(详见表10-9)。

表10-9 jQuery UI创建的事件

| 事件 | 功能 | | :----- | :----- | :----- | :----- | | dragstart | 等同于 options.start | | drag | 等同于 options.drag | | dragstop | 等同于 options.stop |