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 安装TIA PortalV15.1报错
  • ¥15 能把水桶搬到饮水机的机械设计
  • ¥15 Android Studio中如何把H5逻辑放在Assets 文件夹中以实现将h5代码打包为apk
  • ¥15 使用小程序wx.createWebAudioContext()开发节拍器
  • ¥15 关于#爬虫#的问题:请问HMDB代谢物爬虫的那个工具可以提供一下吗
  • ¥15 vue3+electron打包获取本地视频属性,文件夹里面有ffprobe.exe 文件还会报错这是什么原因呢?
  • ¥20 用51单片机控制急停。
  • ¥15 孟德尔随机化结果不一致
  • ¥15 在使用pyecharts时出现问题
  • ¥50 怎么判断同步时序逻辑电路和异步时序逻辑电路