0
나는이 사이트에서이 jquery SliderTabs를 시험해 보았습니다. "http://lopatin.github.com/sliderTabs/". 모든 것이 잘 작동하고, 외부 링크를 사용하여 특정 탭으로 이동하는 데 문제가 있습니다. 다음 코드는 다음과 같습니다.jquery slidertab에 링크하는 방법?
<script>
$(function(){
$('#customers').sliderTabs();
if(document.location.hash!='') {
//get the index from URL hash
selectedTab = document.location.hash.substr(1,document.location.hash.length);
$("#customers").sliderTabs('select', selectTab - 1);
}
});
</script>
그러나 단지 나를 위해 작동하지 않습니다. 누구든지 이걸 도와 줄 수 있니?
이 기능을 사용 했습니까? @ user1555843'var date = $ (this) .datepicker ('getDate');를 시도 할 때 동일한 문제가 발생하여 'Uncaught TypeError : 속성을 읽을 수 없습니다'selectTab 'undefined'를 가져옵니다. var dayOfWeek = date.getUTCDay(); $ ("# tabsDiv"). sliderTabs ("selectTab", dayOfWeek);' – user2329438