【问题标题】:Tooltip does not work in meteor工具提示在流星中不起作用
【发布时间】:2015-07-12 06:23:42
【问题描述】:

这是我的示例代码:

https://github.com/xois/meteortooltip

header.html

<li><a data-toggle="tooltip" title="test title" href="#">test</a></li>

header.js

Template.header.rendered = function() {
  $('[data-toggle="tooltip"]').tooltip({palacement: 'bottom'});
}; 

meteor-platform
twbs:bootstrap
iron:router

怎么了?我该如何解决?

【问题讨论】:

  • 顺便说一句,你不应该使用 .rendered = function(){};因为它已被弃用。而是使用 .onRendered(function(){});

标签: twitter-bootstrap meteor twitter-bootstrap-3


【解决方案1】:

您的tooltip 通话中有错字(“宫殿”):

Template.header.rendered = function() {
  $('[data-toggle="tooltip"]').tooltip({placement: 'bottom'});
}; 

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-10-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多