如下元素,要获取marker-end的值,使用element.attr("#triangle_0")是获取不到的。需要使用 lineElement.node.style['marker-end']才能获取到