if(cc/tr < lv){var f = confirm("生产良率小于管控良率,请确认是否提交?");if(f){$('#submit').attr("value","数据已提交,正在处理,请稍候......");$('#submit').attr("disabled","true");return true;}return false;}设置disabled属性为true即为不可用状态。JS:document.getElementByIdx("btn").disabled=true;Jquery:$("#btn").attr("disabled",true);html:<input type="submit" id="btn">
1200字范文,内容丰富有趣,写作的好帮手!