Commit e9b3c757 by 王东红

fix

parent 52a10247
...@@ -56,15 +56,15 @@ define([ ...@@ -56,15 +56,15 @@ define([
this.delay = this.options.delay; this.delay = this.options.delay;
var len = $(".navigation ul li.level-top").length; // var len = $(".navigation ul li.level-top").length;
console.log(len) // console.log(len)
//
var hide = 4; // var hide = 4;
$(".navigation ul li.level-top").each(function(index) { // $(".navigation ul li.level-top").each(function(index) {
if (index > hide) { // if (index > hide) {
$(this).hide();//第(hide+1)几个以后开始隐藏 // $(this).hide();//第(hide+1)几个以后开始隐藏
} // }
}); // });
this._super(); this._super();
$(window).on('resize', function () { $(window).on('resize', function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment