在JavaScript中添加换行符(完整日历)

web*_*ogs 2 javascript jquery fullcalendar

这是来自Adam Shaw的FullCalendar ...

如何在这里放置换行符,以便第二行移动到下一行?

events: [
    {
    title: 'Line 1 - This is line 2...',
    start: '2013-11-07'
},
Run Code Online (Sandbox Code Playgroud)

我尝试添加其中一个+'<br />',但它没有用...

思考?

sjk*_*jkm 11

就像我在上面的回答中已经说过的那样:添加\n就可以了!

见:http://jsbin.com/IZoCoJIy/1/