请问js有没有可视化编辑json配置文件的插件?
网友回复
可以试试json-editor
<!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", "Honda", "Ford", "Chevy", "VW" ] }, model: { type: "string" }, year: { type: "integer", enum: [ 1995,1996,1997,1998,1999, 2000,2001,2002,2003,2004, 2005,2006,2007,2008,2009, 2010,2011,2012,2013,2014 ], default: 2008 } } } }); // Hook up the submit button to log to the console document.getElementById('submit').addEventListener('click',function() { // Get the value from the editor console.log(editor.getValue()); }); </script> </body> </html>
如果对uniapp打包生成的ios安装包ipa进行混淆加密加壳保护?
局域网中多台电脑如何不插拔usb实现鼠标键盘共享?
nc如何实现反向shell?
ai如何根据别人朋友圈拍摄的照片获取经纬度信息?
如何将llama3接入Siri?
js如何获取浏览器canvas指纹?
如何使用用js写一个字符串位移加密传给后端php解密?
Selenium打开网页模拟点击页面按钮的e.trusted是true吗?
听说Gemini 1.5 Flash能根据你的录屏操作网页视频生成Selenium代码?
coze Webhook URL发送触发器报错:{"code":41001004,"data":{"items":[]},"items":[],"message":"RecordNotFound:Pl