0
我無法找到完整的文檔。例如,popover
效果(here)將使用DOM的data-origin-title
屬性作爲自己的標題,並data-cotent
其內容:你如何知道如何使用twitter-bootstrap?
$('#somedom').hover (->
$(this).addClass("hover")
$(this).attr("data-original-title","Location")
$(this).attr("data-content":'The popover plugin provides a simple interface for adding popovers to your appli cation. It extends the bootstrap-twipsy.js plugin,
so be sure to grab that file as well when including popovers in your project!')
$(this).popover({})
$(this).popover("show")
),->
$(this).removeClass("hover")
在哪裏學的?官方文件沒有data-origin-title
屬性。在源代碼bootstrap-popover.js
中都沒有。