dsam70528 2013-09-02 10:34
浏览 66
已采纳

如何从同一页面中的多个表单中读取/编辑/保存信息?

I'm working with JavaScript, HTML and PHP on this website where I have a GUI quite similar with an IDE. What I'm trying to say is that I have multiple tabs with diferrent buttons that generate multiple forms on a big .

When I'm done with filling all the fields from these multiple forms, it will lately all be exported into a JSON object. But that's not the problem for now.

The big issue here is all about keeping the information and allowing the user to later edit it before exporting everything to JSON.

Any sugestions?

Regards

  • 写回答

2条回答 默认 最新

  • dongshenchi5364 2013-09-02 10:40
    关注

    Since its JSON Object. you can change like below.

    var json = '{"result":true,"count":1}',
        obj = JSON.parse(json);
    
    alert(obj.count);
    

    Refer for more information Parse JSON in JavaScript?

    To Store the JSON into HTML5 Localstorage Concept will help you.

    1. Storing Objects in HTML5 localStorage
    2. Push JSON Objects to array in localStorage

    I Prefer BackBoneJS

    Check the below SO Answer

    Backbone.js Multi-Step Form

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作