diff --git a/js/OnlineIDE.js b/js/OnlineIDE.js index ea1f5b2..1dc4ef9 100644 --- a/js/OnlineIDE.js +++ b/js/OnlineIDE.js @@ -363,6 +363,7 @@ function onExecuteResult(obj) { var sytleTail = "未知格式"; if (data.result instanceof Object) { sytleTail = "JSON格式"; + data.result = JSON.stringify(data.result); } else if (typeof data.result == 'string') { styleTail = "字符串格式"; } else if (typeof data.result == 'boolean'){