$("#payBtn").attr("disabled", true) layer.msg('请查看并同意《服务协议》', { time: 2000 }, function() { $("#payBtn").attr("disabled", false) })