📌  相关文章
📜  显示 prety html json 数据 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:29.035000             🧑  作者: Mango

代码示例1
var data = {
  "data": {
    "x": "1",
    "y": "1",
    "url": "http://url.com"
  },
  "event": "start",
  "show": 1,
  "id": 50
}


document.getElementById("json").textContent = JSON.stringify(data, undefined, 2);