改进trace驱动

This commit is contained in:
thinkphp
2017-10-12 16:32:21 +08:00
parent 80c82571b0
commit c3cca93104

View File

@@ -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;