<path inkscape:connector-curvature="0" style="display: block; opacity: 1; fill: red; fill-opacity: 1; stroke: none; stroke-width: 0.35; stroke-linecap: butt; stroke-linejoin: round; stroke-miterlimit: 4; stroke-dasharray: none; stroke-dashoffset: 0.06; stroke-opacity: 1;" d="m 791.31662,200.79886 0,-22.52473 8.04492,0 c 2.89419,1.65118 4.75944,3.45831 5.6465,6.10113 l 0,16.4236 -13.69142,0 z" id="id_9564" inkscape:label="" class="selectable-place">
<title id="title9791">301</title>
</path>
我具有上述html元素,并且希望能够更新title标签元素的childnode。 当前值为301,我希望能够将其更改为“自定义标题”
var test = d3.selectAll('.selectable-place').select(function(){
return attr("title", 'custom value');