Commit e9b3c757 by 王东红

fix

parent 52a10247
......@@ -56,15 +56,15 @@ define([
this.delay = this.options.delay;
var len = $(".navigation ul li.level-top").length;
console.log(len)
var hide = 4;
$(".navigation ul li.level-top").each(function(index) {
if (index > hide) {
$(this).hide();//第(hide+1)几个以后开始隐藏
}
});
// var len = $(".navigation ul li.level-top").length;
// console.log(len)
//
// var hide = 4;
// $(".navigation ul li.level-top").each(function(index) {
// if (index > hide) {
// $(this).hide();//第(hide+1)几个以后开始隐藏
// }
// });
this._super();
$(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