D3.js-DOM操作
SVG
DOM
追加 DOM 元素:append()
The selection.append() function accepts one of two types:
- A string which is the name of an element to create, or
- A function which is executed (applied on parent) and should return an element or HTML.
1 | |
The selection.append() function accepts one of two types:
1 | |