1$(document).ready(function(){
2 activaTab('aaa');
3});
4
5function activaTab(tab){
6 $('.nav-tabs a[href="#' + tab + '"]').tab('show');
7};
1var url = window.location.href;
2var activeTab = url.substring(url.indexOf("#") + 1);
3 $(".tab-pane").removeClass("active in");
4
5$("#" + activeTab).addClass("active in");
6
7$('a[href="#'+ activeTab +'"]').tab('show')
8