我在页面上有40个foo,每个都在另一个函数中分配了一个左/上值.
$('.foo').css({ top: isOn ? current_top_value_here : 500,left: isOn ? current_left_value_here : 500 });