MXML 中的回车换行

发布于 2024-09-28 01:33:29 字数 147 浏览 5 评论 0原文

我有这样一句话:

text="{selectedOrder.targetLocationName} 'crlf' {pickUpLocationHTML}"

有人知道如何使这项工作有效吗?

谢谢。

I have this line:

text="{selectedOrder.targetLocationName} 'crlf' {pickUpLocationHTML}"

Does anybody has an idea how to make this work?

Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

公布 2024-10-05 01:33:29

您尝试过\r\n吗? \n 足以在 flash 中创建换行符(换行符是 unix 样式;\r\n 实际上会给你 2 个换行符,就像你有 Windows 中的 \r\n\r\n)。

所以,也许你需要类似的东西(未经测试!):

text="{selectedOrder.targetLocationName}\n{pickUpLocationHTML}"

Have you tried \r\n? \n is enough to make a newline in flash though (newlines are unix style; \r\n will actually give you the 2 newlines, like if you had \r\n\r\n in Windows).

So, perhaps you need something like (not tested!):

text="{selectedOrder.targetLocationName}\n{pickUpLocationHTML}"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文