答案 0 :(得分:1)
我按照下面提到的解决方案解决了这个问题:
link.attr({
' .marker-arrowhead [end =" source"]':{fill:' red',d:' M 10 0 L 0 5 L 10 10 z' },
' .marker-arrowhead [end =" target"]':{fill:' yellow',d:' M 10 0 L 0 5 L 10 10 z' }
});