我想将qtip与 cytoscape.js 一起使用,以在使用 cytoscape.js 创建的图形中鼠标悬停事件的节点中显示工具提示。我已将以下代码放入 ready: function() 中,如下所示:
cy.on('mouseover','node',function (event) {
var eid = $(this).data('id');
$(this).qtip({
overwrite: false,
content: eid,
position: {
my: 'right center',
at: 'left center',
target: $(this)
},
show: {
event: event.type,
ready: true
},
hide: {
fixed: true
}
}, event);
});
但是,鼠标悬停事件的节点中没有显示工具提示。请帮助我。