fmpq.com
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Fmpq教程(fmpq.com)</title> </head> <body> <form id="frm1" action="demo-form.php" method="get"> First name: <input type="text" name="fname" value="Donald"><br> Last name: <input type="text" name="lname" value="Duck"><br> <input type="submit" value="提交"> </form> <p>发送表单数据的方法: <script> document.write(document.getElementById("frm1").method); </script> </p> </body> </html>
运行结果