【发布时间】:2018-08-31 13:36:45
【问题描述】:
我正在尝试在 Postman 控制台中使用 \n 在多行上显示字符串。我该怎么做?
例子:
var mystr='line\n another line\n another line';
console.log(mystr);
期待:
line
another line
another line
获取:
lineanother lineanother line
注意:它在 Firefox 暂存器中按预期工作。
【问题讨论】:
-
试试
\\n而不是\n。 -
试过:结果是:行\n 另一行\n 另一行
-
也许试试 '\r\n'
-
\n、\\n、\r\n在 Postman 控制台中没有任何作用。
标签: javascript postman postman-collection-runner