小编PRI*_*NHA的帖子

将表单数据转换为 JSON

<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 格式提交。

html javascript json

-5
推荐指数
1
解决办法
6864
查看次数

标签 统计

html ×1

javascript ×1

json ×1