把按钮设置成不可选以后,这会让按钮变灰并且不能点击。

$("button").prop("disabled", true);

原文地址:https://www.cnblogs.com/zouyun/p/7774525.html