Netsuite:如何在 VAR Suitescript 中输入新行
Netsuite: How to enter new line in VAR Suitescript
根据标题,我想在 var 中输入新行,但没有任何线索。有帮助吗?
var string = 'item : 1';
string.replace('1', 'atom 1 \n atom2 \n atom3');
我希望产生类似
的输出
项目:
原子 1
原子 2
原子 3
谢谢。
我自己刚刚找到这个答案。
将在此处更新答案,以防将来有人遇到此问题。
var string = 'item : 1';
string.replace('1', 'atom 1 <br> atom2 <br> atom3');
根据标题,我想在 var 中输入新行,但没有任何线索。有帮助吗?
var string = 'item : 1';
string.replace('1', 'atom 1 \n atom2 \n atom3');
我希望产生类似
的输出项目: 原子 1
原子 2
原子 3
谢谢。
我自己刚刚找到这个答案。 将在此处更新答案,以防将来有人遇到此问题。
var string = 'item : 1';
string.replace('1', 'atom 1 <br> atom2 <br> atom3');