jQuery有一个.prop()的方法,可以让你来调整元素的属性。 以下代码显示如何禁用所有按钮: $("button").prop("disabled", true); 来尝试只让target1按钮禁用。