0

我对负载描述有疑问。我通过 ajax 得到答案,这是 JSON 部分信息:

{"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'
            }
        });

如何将此描述数组加载到工具提示。

4

1 回答 1

0

这是答案:

content: (event.description.join(", ")),
于 2010-08-23T18:44:42.763 回答