D3.js:属性包含选择器

时间:2018-05-22 12:05:55

标签: javascript jquery d3.js

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]'不是有效的选择器

0 个答案:

没有答案
相关问题