If the form is clicked too quickly, it will be submitted multiple times. Is it necessary to add a mask layer to prevent multiple submissions?
乐正凌2022-03-24 12:56:53
<button type="button" class="layui-btn " id="sendSmsBtn" onclick="save()">Save</button>
Write ## in the JS method
#After click$('#sendSmsBtn').addClass("layui-btn-disabled").attr("disabled",true);After callback$('#sendSmsBtn').removeClass("layui-btn-disabled").attr("disabled",false);