在d3
中,我想选择多个包含带有“global_read”的类作为子字符串的元素(例如,global_read_foo,global_read_bar)。
d3-select
提供的内容是jQuery's attribute contains selector吗?
当我使用g.selectAll("g [class=*global_read]")
版本5.0尝试d3
时,出现以下错误:
未捕获的DOMException:无法在'Element'上执行'querySelectorAll':'g [class = * global_read]'不是有效的选择器