From c3cca931043f40a3a7c5344f33d7b1cf4a972023 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 12 Oct 2017 16:32:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Btrace=E9=A9=B1=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/debug/Console.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/debug/Console.php b/library/think/debug/Console.php index 8a232c8c..c17911b2 100644 --- a/library/think/debug/Console.php +++ b/library/think/debug/Console.php @@ -137,7 +137,7 @@ JS; } break; case '错误': - $msg = str_replace("\n", '\n', $m); + $msg = str_replace("\n", '\n', json_encode($m)); $style = 'color:#F4006B;font-size:14px;'; $line[] = "console.error(\"%c{$msg}\", \"{$style}\");"; break;