52,782
社区成员
发帖
与我相关
我的任务
分享 $(function () {
for (var i = 1; i <= 6; i++) {
$("#position" + i).bind("mouseover", { '$i': i }, function (event) {
for (var j = 1; j <= 6; j++) {
alert(event.data['$i'] + "___" + j); //这一行的i 怎么从7开始啊???????
if (event.data['$i'] === j) {
$("#cr-item-" + j).removeClass("hide");
} else {
$("#cr-item-" + j).addClass("hide");
}
}
});
$("#position" + i).mouseout(function () {
$(this).css("background-color", "#ffffff");
});
}
}
);