You can get and set an element's attributes directly using attr() . Get a single attribute: var x = rect.attr('x').
確定! 回上一頁