How can I get bootstrap version via javascript?

How can I get bootstrap version via javascript?

回答1

The version of each of Bootstrap's jQuery plugins can be accessed via the VERSION property of the plugin's constructor. For example, for the tooltip plugin:

$.fn.tooltip.Constructor.VERSION // => "3.3.7"

src //getbootstrap.com/javascript/#js-version-nums

if you mean from the css, then yu ahve to AJAX the file and .match(/v[.\d]+[.\d]/);

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章