【问题标题】:How to get the JSON data to ul list using javascript and jquery如何使用 javascript 和 jquery 将 JSON 数据获取到 ul 列表
【发布时间】:2015-12-04 14:22:12
【问题描述】:

我想使用 javascript 和 jquery 将以下 json 数据放入无序列表

 var dataSource = ({
        "Items": ({
               "Juice": ({
                "Mango": "Mango",
                "Berry": "Berry",
                "Grapes": "Grapes",
                "Wine": ({
                    "Rose": "Rose",
                    "Red wine": "Red",
                    "Apple": "Apple",
                    "Hard drinks": ({
                        "Royal challenge": "Royal challenge",
                        "Blender's Pride": "Blender's Pride"
                    })
                })
            })

        })
    });

【问题讨论】:

  • 您将哪些数据放入列表中?请提供更多详细信息
  • 这不是一个有效的 json!

标签: javascript jquery json


【解决方案1】:

问题已在堆栈溢出中得到解答。请点击以下链接。

Generate unordered list from JSON Data?

干杯, 桑杰

【讨论】:

    猜你喜欢
    • 2015-09-25
    • 2011-01-17
    • 1970-01-01
    • 1970-01-01
    • 2012-01-29
    • 1970-01-01
    • 2014-02-04
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多