You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some HTML elements have special properties that are not addressable using attributes or styles, such as a form field’s text value and a checkbox’s checked boolean. Use this method to get or set these properties
所以这个api的应用范围很狭窄,获取svg元素属性应该用selection.attr()这个api
The text was updated successfully, but these errors were encountered:
待测试和补完demo
在这个demo里看到这个api用法
经测试似乎这个api是为了获取某些特殊hmtl的属性用的, 获取普通svg元素并不能取到属性,上面demo的列子也是为了获取select中的value值,官方api描述这么说
所以这个api的应用范围很狭窄,获取svg元素属性应该用selection.attr()这个api
The text was updated successfully, but these errors were encountered: