1
中添加'br'
我正在为我的移动应用项目使用backbone.js。我的问题是如何在段落中添加'br'?这是我的代码。Javascript - 如何在段落
<p><%= product.get('description') %></p>
数据在数据库
The COOLPIX S620 combines beauty and brains.
It features the worlds fastest start up in just 0.7 seconds.
我要的是像这样
The COOLPIX S620 combines beauty and brains.
It features the worlds fastest start up in just 0.7 seconds.
不是这个
The COOLPIX S620 combines beauty and brains. It features the worlds fastest start up in just 0.7 seconds.
斯普利特'。 '加入'
' – elclanrs
@elclanrs - 这可能会有点冒险,因为他可能最终不应该在'
'之内。例如:'0.7'会变成'0
7'' – techfoobar
是的,只是给了一个小费,在希望OP会尝试一些东西,并张贴代码 – elclanrs