如何拆分段落中的行 [英] How to split the line in a paragraph

查看:100
本文介绍了如何拆分段落中的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



能告诉我如何分割段落



这里是段落,如





运输说明:::第1节,重量需要验证> 25

小盒子,中盒子。

节= 2 ---& $

节= 3

结束说明。





i已编写代码如



Hello All,

Can you please let me know the how to split the paragraph in a line

here is the paragraph like


Shipping Instructions ::: Section 1,Weight needs to be verified > 25
Small box , medium box.
Section = 2 --- &$
Section = 3
End of Instructions.


i have write the code like

var desc = desc.split('/n');





但是我只得到一行,提前谢谢。





谢谢,



but i am getting only one line, thanks in advance.


Thanks,

推荐答案



Section = 3

说明结束。





i已编写代码如< br $>



Section = 3
End of Instructions.


i have write the code like

var desc = desc.split('/n');





但是我只得到一行,在此先感谢。





谢谢,



but i am getting only one line, thanks in advance.


Thanks,


为什么尝试不知道HTML的Javascript编程。在HTML标记中,\ n与空白空间没有区别。段落标有< p> ,换行符 - < br /> 。您甚至可以在CodeProject帖子上看到它...



-SA
Why trying Javascript programming not knowing HTML. In HTML mark-up, "\n" is no different from blankspace. Paragraphs are marked with <p>, line breaks — with <br/>. You could see it even on CodeProject posts…

—SA


这篇关于如何拆分段落中的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆