将字符串结果返回到 table 单元格中的新行
Returning string result into a new line in a table cell
我有此数据需要在同一个单元格中分成 3 行。
var Ms = '<tr>'
Ms += '<td>' + 'Where' + '\n\r' + 'are' + '\n\r' + 'you' + '</td>';
Ms += '</tr>'
我尝试了 \n、\r 和 \n\r,但似乎不起作用。
我需要这种格式的结果:
在哪里
是
你
你为什么不用<br>
var Ms = '<tr>'
Ms += '<td>' + 'Where' + '<br>' + 'are' + '<br>' + 'you' + '</td>';
Ms += '</tr>'
我有此数据需要在同一个单元格中分成 3 行。
var Ms = '<tr>'
Ms += '<td>' + 'Where' + '\n\r' + 'are' + '\n\r' + 'you' + '</td>';
Ms += '</tr>'
我尝试了 \n、\r 和 \n\r,但似乎不起作用。 我需要这种格式的结果: 在哪里 是 你
你为什么不用<br>
var Ms = '<tr>'
Ms += '<td>' + 'Where' + '<br>' + 'are' + '<br>' + 'you' + '</td>';
Ms += '</tr>'