乐正凌2022-03-24 12:56:53
<button type="button" class="layui-btn " id="sendSmsBtn" onclick="save()">保存</button>
JS方法里写
点击后
$('#sendSmsBtn').addClass("layui-btn-disabled").attr("disabled",true);
回调后
$('#sendSmsBtn').removeClass("layui-btn-disabled").attr("disabled",false);