为什么80%的码农都做不了架构师?>>>
代码语言:javascript复制 var mytabhash=window.location.hash;
var str='#myTabs a[href="' mytabhash '"]';
$(str).tab('show');
$('#myTabs a').click(function (e) {
e.preventDefault();
window.location.href=window.location.protocol '//' window.location.host window.location.pathname window.location.search $(this)['context'].hash;
})