<html>
<head></head>
<body>
<form name="abc" action="#" method="post">
Name: <input type="text" name="name"><br>
Age : <input type="text" age="name"><br>
<input type="submit"><br>
</form>
</body>
</html>Run Code Online (Sandbox Code Playgroud)
任何人都可以编写此 HTML 代码,以便在我提交此表单时,表单数据将以 JSON 格式提交。