You can use it to set any attribute on any selection, including the class attribute. selection.attr('class', 'foo') will apply the CSS class foo to selection ...
確定! 回上一頁