ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
[TOC] ## 参数 参数可以同构 data-*="" 如 data-placemen="left",或,`tooltip({animation:false,}传递给 tooltip对象设置 | 名称 | 类型 | 默认值 | 描述 | | --- | --- | --- | --- | | animation | boolean | true | 为弹出框赋予淡出的 CSS 动画效果。 | | delay| number/object | 0| 延迟展示 `delay: { "show": 500, "hide": 100 }`| |placement| string /function | 'right'|设置展示方向 | | template | string| ... | 修改提示的模板 | | title| string /function | 展示的字 | | trigger | string | ‘click’| 触发方式 click / hover / focus | ## 实例 ### hello word ``` <a href="#" data-toggle="tooltip" data-placement="bottom" title="Some tooltip text!">Hover over me</a> $(function () { $('[data-toggle="tooltip"]').tooltip() }) ```