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

12-在保管元素上使用bind ()管理事件

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

10.5 在保管元素上使用 bind () 管理事件

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

表10-16 jQuery UI创建的事件

| 事件 | 功能 | | :----- | :----- | :----- | :----- | | dropactivate | 等同于 options.activate | | dropdeactivate | 等同于 options.deactivate | | dropover | 等同于 options.over | | dropout | 等同于 options.out | | drop | 等同于 options.drop |