Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我只想在 dom 包含标题时显示 jQuery 工具提示。例如:我想提示一个按钮。如果按钮具有标题属性,则显示工具提示。如果按钮没有标题属性,则不显示工具提示。
可能只是以通常的方式检查标题属性,不是吗?
$('a[title]').tooltip();