html [js - jsoneditor] #js
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html [js - jsoneditor] #js相关的知识,希望对你有一定的参考价值。
<!--
<link href="jsoneditor/dist/jsoneditor.min.css" rel="stylesheet" type="text/css">
<script src="jsoneditor/dist/jsoneditor.min.js"></script>
-->
<div id="jsoneditor" style="width: 400px; height: 400px;"></div>
<script>
// create the editor
var container = document.getElementById("jsoneditor");
var options = {};
var editor = new JSONEditor(container, options);
// set json
var json = {
"Array": [1, 2, 3],
"Boolean": true,
"Null": null,
"Number": 123,
"Object": {"a": "b", "c": "d"},
"String": "Hello World"
};
editor.set(json);
// get json
var json = editor.get();
</script>
以上是关于html [js - jsoneditor] #js的主要内容,如果未能解决你的问题,请参考以下文章
JsonEditor 与 Django Admin 集成
vue 中的 JsonEditor 组件未显示
JsonEditor与Django Admin集成
JSON在线格式化 jsoneditor使用
python 管理员为Django,jsoneditor,Postgres的JSON编辑器(来自http://stackoverflow.com/a/40326235/2742038)
JS reduceRight 导致数组成为对象,我该如何修复逻辑?