Commit 53ad501923f7b10c082524bc07a8805645e56487

Authored by Andy
1 parent 8398ceab

add nav

Showing 1 changed file with 2 additions and 4 deletions
js/nav-footer.js
... ... @@ -28,7 +28,7 @@
28 28 '</div>' +
29 29 '<</div>' +
30 30 '</div>';
31   -
  31 + $('#header').html(headerHtmls);
32 32 //footer HTML
33 33 var footHtmls='<div class="container">' +
34 34 ' <div class="row">' +
... ... @@ -88,7 +88,7 @@
88 88 ' </div>' +
89 89 ' </div>' +
90 90 ' </div>';
91   - $('#header').html(headerHtmls);
  91 +
92 92 $('#footer').html(footHtmls);
93 93 /**
94 94 *弹窗切换
... ... @@ -97,8 +97,6 @@
97 97 var _index = $(this).index();
98 98 // debugger
99 99 console.log(_index);
100   - console.log( $('#nav>li').eq(_index))
101   - console.log( $('#nav>li').eq(_index).siblings().html())
102 100 $('#nav>li').eq(_index).addClass('current').siblings().removeClass('current');
103 101 });
104 102  
... ...