Twitter's Bootstrap Tooltip 中使用的数据选择器选项是什么? ?描述是……
If a selector is provided, tooltip objects will be delegated to the specified targets.
但我不明白它的用途或如何使用它。
最佳答案
这类似于使用 jQuery 委托(delegate)方法,如 on()
或 delegate()
,以便在编写代码时考虑页面中不存在的工具提示元素正在运行。
绑定(bind)到 body
的示例,因为它始终存在于页面中
$('body').tooltip({
selector: '.mytooltipClass'
})
关于javascript - Twitter Bootstrap 工具提示数据选择器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13545533/