运行结果尺寸: 300 x 150
x
 
<!DOCTYPE html>
<html>
<body>
<h1>button formmethod 属性</h1>
<form action="/action_page.php" method="get" target="_blank">
  <label for="fname">First name:</label>
  <input type="text" id="fname" name="fname"><br><br>
  <label for="lname">Last name:</label>
  <input type="text" id="lname" name="lname"><br><br>
  <button type="submit">提交</button>
  <button type="submit" formmethod="post">使用 POST 提交</button>
</form>
</body>
</html>
×

报个问题: