84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
加n换不了行 只会显示个空格比如过滤器中最后return "湖北\n江苏"
return "湖北\n江苏"
业精于勤,荒于嬉;行成于思,毁于随。
Reason: When HTML renders the page, multiple spaces or line breaks will be merged into one space and displayed on the page
Solution:
You can use the <pre></pre> tag when rendering the page and insert the returned string into this tag.
pre 标签可定义预格式化的文本。被包围在 pre 标签中的文本通常会保留空格和换行符。而文本也会呈现为等宽字体
Use "<br/>" tag to replace line
Uh-huh. . The webpage does not recognize n.
split("n") gets the new array, and then generates a new tag with <br/> insert it into a new line
Reason: When HTML renders the page, multiple spaces or line breaks will be merged into one space and displayed on the page
Solution:
You can use the <pre></pre> tag when rendering the page and insert the returned string into this tag.
Use "<br/>" tag to replace line
Uh-huh. . The webpage does not recognize n.
split("n") gets the new array, and then generates a new tag with <br/> insert it into a new line