四五、使用form表单提交,post请求提交参数,跳转页面。

一、Html


<form action="" id="nameform" method="post" v-show="false">
  <input type="text" name="systemId">
  <input type="text" name="params">
  <input type="text" name="signData">
form>


二、javaScript

document.getElementById("nameform").setAttribute("action", url);
document.getElementById("nameform").systemId.value =this.systemId;
document.getElementById("nameform").params.value = this.params;
document.getElementById("nameform").signData.value = this.signData;
document.getElementById("nameform").submit();


你可能感兴趣的:(JavaScript)