2010-08-23 85 views
0

我有加載描述的問題。我得到通過AJAX的答案,這是JSON部分信息:FullCalendar和qTip。幫助描述爲數組

{"id":"","start":1282561200,"end":1282564800,"title":"admin admin","description":[["Alcatel-6850, ","Alcatel-6400, "]]} 

這是代碼來渲染事件:

eventRender: function(event, element) { 
     element.qtip({ 
      content : event.description, 
      position: { 
       corner: { 
        tooltip: 'bottomLeft', 
        target: 'topRight' 
       } 
      }, 
      style : { 
       width: 200, 
       padding: 5, 
       //background: '#A2D959', 
       color: 'black', 
       textAlign: 'center', 
       border: { 
        width: 2, 
        radius: 5, 
        color: '#A2D959' 
       }, 
       tip: 'bottomLeft', 
       name: 'blue' 
      } 
     }); 

如何加載此描述數組提示。

回答

0

這裏是答案:

content: (event.description.join(", ")),