You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log('%c Foo %c bar', 'color:red'); // Foo %c bar
128
128
```
129
129
130
-
> Note that only first parameter support `%c` format, and the following parameter(s) will be used as HTML style to fill `%c`, and the remain `%c` or parameters will be shown as normal string.
130
+
> Note that only the first parameter support `%c` format, and the`%c` must be followed by a space. The following parameter(s) will be used as HTML style to fill `%c`, and the remain `%c` or parameters will be shown as normal string.
131
131
132
132
---
133
133
134
134
### Using string substitutions
135
135
136
-
Use `%s, %d, %o` to output log with formatting.
136
+
Use `%s, %d, %o` to output a log with formatting. The pattern must be followed by a space.
137
137
138
138
-`%s`: Output as a string. Non-string objects will be converted into strings.
0 commit comments