我正在使用JavaScript警报(尽管稍作修改)。该警报具有标题字段和内容字段。在我的内容字段中,我想在换行中显示一些文本,但是\n
和<br>
都不起作用。参见图片以检查给定代码的输出。
new Attention.Alert({
title: 'School',content: 'Date - '+v_date+'\n School Name - '+ school_name + "\n School City - " + school_city + " "
});