<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <style>






  </style>

</head>
<body>
  
  
  <form action="服务器地址" id="myForm" onsubmit="submitHandle">

    <input type="text">
    <button id="resetBtn">重置内容</button>

    <button>提交表单</button>
  </form>



<script>

var resetBtn = document.getElementById("resetBtn");
var myForm = document.getElementById("myForm");
resetBtn.onclick = function(){
  myForm.reset();//触发在表单上,清空表单内容
};


function submitHandle(){
console.log("想做的事情。");
};










</script>






</body>
</html>