Ada*_*ers 4 javascript jquery css3 twitter-bootstrap
Twitter的Bootstrap Tooltip中使用的数据选择器选项是什么?描述内容如下......
If a selector is provided, tooltip objects will be delegated to the specified targets.
Run Code Online (Sandbox Code Playgroud)
但我不明白它的目的或如何使用它.
它类似于使用jQuery委托方法,on()或者delegate()为了计算代码运行时页面中不存在的工具提示元素.
绑定示例,body因为它始终存在于页面中
$('body').tooltip({
selector: '.mytooltipClass'
})
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3816 次 |
| 最近记录: |