我想通过使用带有多行消息的 Cordova Notification 插件在 Intel XDK 中显示通知,例如:
- 第 1 行
- 第 2 行
- 第 3 行
我四处搜索并尝试使用“\n”或“\r\n”或“\n”之类的解决方案,但它们都不起作用。
我应该如何解决这个问题或 Cordova Notification 插件不支持多行消息?
最佳答案
这行不通
navigator.notification.alert("break<br>the line",null,"Test","OK");
这行得通
navigator.notification.alert("break \r\n the line",null,"Test","OK");
关于android - Cordova 通知中的多行消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31107363/