在下面的代码中,注释掉的行:var displayPieces = displayWhole.split(" ");
Breaks what happens in .subMenuContent area。如果我只注释掉那一行,它工作得很好。有任何想法吗?
$(".subMenuHeader").each(function() {
var displayWhole = $(this).attr('display');
//var displayPieces = displayWhole.split(" ");
});
$(".subMenuContent").each(function() {
$(this).prepend('<div class="subMenuShineLeft"></div>' +
'<div class="subMenuShineRight"></div>');
});