【发布时间】:2014-03-12 10:00:40
【问题描述】:
我有一个显示图像的弹出框: 我的html:
%a#btn2{"data-content" => "#{ image_tag CarConfiguration.last.image_url.to_s}".html_safe ,"data-placement" => "bottom"} Click to toggle popover
我的js:
$('#btn2').popover trigger: "hover", html: true
我想将此片段导出到我的 js:
"data-content" => "#{ image_tag CarConfiguration.last.image_url.to_s}"
我该怎么做?
【问题讨论】:
标签: javascript jquery ruby-on-rails twitter-bootstrap twitter-bootstrap-3