Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用换行符在 Twitter 上发布一些文本。
我在下面的代码中尝试过\n或\r喜欢,但 Twitter 忽略了这些。
\n
\r
tweet.setText(" Text1 " + "\n" + "Text2");
提前致谢!
尝试<br />或[br /]。
<br />
[br /]
<br />是标准的 html 标签,有时网站和论坛使用[br /].