Ble*_*der 4 javascript console google-chrome
有没有办法迫使Chrome的JS控制台显示像Firefox这样的新行?
铬:

火狐:

某处可能是一个隐藏的开关?
你可以尝试这个方法
var x = 'a\\nb';
Run Code Online (Sandbox Code Playgroud)
编辑:
您可以在字符串中使用十六进制字符。
\ = '\u005C'
> var x = 'a\u005Cnb';
> x
<- "a\nb"
> x === "a\nb" is false.
> x === "a\\nb" is true or x === 'a\u005Cnb' is true.
Run Code Online (Sandbox Code Playgroud)
你可以看一下链接。
http://mathiasbynens.be/notes/javascript-escapes http://code.cside.com/3rdpage/us/javaUnicode/converter.html
| 归档时间: |
|
| 查看次数: |
4053 次 |
| 最近记录: |