在以下代码中 这句话的意思和作用是什么?
$(this).css({ "margin-left": "-120px"}).find(".Panel:last").prependTo(this);
/*完整代码段*/
$("#sysBodyer").find(".Panel:first").animate(
{ marginLeft: MoveSize+"px"},
1000,
function(){
/*下面这句不太理解*/
$(this).css({ "margin-left": Math.abs(MoveSize)+"px"}).find(".Panel:last").prependTo(this);
}
);
$(this).css({ "margin-left": "-120px"}).find(".Panel:last").prependTo(this);
/*完整代码段*/
$("#sysBodyer").find(".Panel:first").animate(
{ marginLeft: MoveSize+"px"},
1000,
function(){
/*下面这句不太理解*/
$(this).css({ "margin-left": Math.abs(MoveSize)+"px"}).find(".Panel:last").prependTo(this);
}
);
$(this).css({ "margin-left": Math.abs(MoveSize)+"px"}).find(".Panel:last").prependTo(this);