js 手动设置表单值再提交

    xiaoxiao2021-03-25  6

    html:

    <form id="form1" method="post" th:action="@{/plan/startWorkOrderBatch}">(th:action 为thymeleaf的标签)

    <input id="workOrderIds" type="hidden" name="workOrderIds"/> 

    </form>

    js:

    document.getElementById("workOrderIds").value=expectedStr;

    $("#form1").submit();

    转载请注明原文地址: https://ju.6miu.com/read-156118.html

    最新回复(0)