Merge branch 'feature/doc_tool' of git.int.haowumc.com:composer/php-json-rpc into feature/doc_tool

This commit is contained in:
张博轩 2019-02-15 14:33:56 +08:00
commit 36651673d9

View File

@ -144,7 +144,8 @@
<script src="https://cdn.bootcss.com/ace/1.4.2/ace.js"></script> <script src="https://cdn.bootcss.com/ace/1.4.2/ace.js"></script>
<script type="text/javascript"> <script type="text/javascript">
var editor = ace.edit("editor"); var editor = ace.edit("editor");
var error_empty = <?php echo empty($error); ?>; var params = <?php echo $params; ?>;
var error_empty = <?php echo isset($error) ? 0 : 1; ?>;
editor.setTheme("ace/theme/monokai"); editor.setTheme("ace/theme/monokai");
editor.session.setMode("ace/mode/json"); editor.session.setMode("ace/mode/json");
editor.on('change', function (e) { editor.on('change', function (e) {