jsoneditor实现可视化编辑json数据效果代码
代码语言:html
所属分类:其他
代码描述:jsoneditor实现可视化编辑json数据效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Basic JSON Editor Example</title> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jsoneditor.min.js"></script> </head> <body> <h1>Basic JSON Editor Example</h1> <div id='editor_holder'></div> <button id='submit'>Submit (console.log)</button> <script> // Initialize the editor with a JSON schema var editor = new JSONEditor(document.getElementById('editor_holder'),{ schema: { type: "object", title: "Car", properties: { make: { type: "string", enum: [ "Toyota", "BMW", &q.........完整代码请登录后点击上方下载按钮下载查看
网友评论0