当前位置: 首页 > 文档资料 > Snap.svg 英文文档 >

Element.toJSON()

优质
小牛编辑
130浏览
2023-12-01

Returns object representation of the given element and all its children.

Returns: object in format

  1. {
    1. type stringthis.type,
    2. attr objectattributes map,
    3. childNodes arrayoptional array of children in the same format
  2. }