🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[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() }) ```