免循环遍历一键清除form表单

    xiaoxiao2022-06-29  42

    代码如下: $("#formId :input").not(":button, :submit, :reset, :hidden") .val("").removeAttr("checked").remove("selected");不需要遍历表单中每个元素单独清空了
    转载请注明原文地址: https://ju.6miu.com/read-1125072.html

    最新回复(0)