minor fix

This commit is contained in:
ZaneYork 2020-10-16 20:04:42 +08:00
parent d014d66f0d
commit 5d97bedf3b
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@
<body> <body>
<div id="jsoneditor" style="width: 100%"></div> <div id="jsoneditor" style="width: 100%"></div>
<script> <script>
webObject = { getText: function(){ return '{"Array":[1,2,3],"Boolean":true,"Null":null,"Number":123,"Object":{"a":"b","c":"d"},"String":"Hello World"}'; }, getMode: function(){ return 'tree';}, getLanguage: function(){ return 'zh-CN';}, isEditable: function(){ return true;}, getHeight: function(){ return 400;}, }; // webObject = { getText: function(){ return '{"Array":[1,2,3],"Boolean":true,"Null":null,"Number":123,"Object":{"a":"b","c":"d"},"String":"Hello World"}'; }, getMode: function(){ return 'tree';}, getLanguage: function(){ return 'zh-CN';}, isEditable: function(){ return true;}, getHeight: function(){ return 400;}, };
// create the editor // create the editor
const container = document.getElementById("jsoneditor"); const container = document.getElementById("jsoneditor");
container.style.height = webObject.getHeight() + "px"; container.style.height = webObject.getHeight() + "px";