87,993
社区成员
发帖
与我相关
我的任务
分享
$(document).ready(function(){
var s,upObj;
$("button").click(function(){
if ($(this).html()=='改变')
return;
var color = this.value;
$("body").css("background-color",color);
if (upObj)
upObj.html(s);
s=$(this).html();
upObj = $(this);
$(this).html('改变');
});
});