search

Home  >  Q&A  >  body text

javascript - 做个记录,我想用JSON.stringify把DOM的attributes转成字符串的时候报错

'Attr.ownerElement' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom).

'HTMLVideoElement.webkitDisplayingFullscreen' is deprecated. Please use the 'fullscreenchange' and 'webkitfullscreenchange' events instead.

'HTMLVideoElement.webkitSupportsFullscreen' is deprecated. Its value is true if the video is loaded.

Uncaught TypeError: Converting circular structure to JSON
PHP中文网PHP中文网2818 days ago526

reply all(2)I'll reply

  • 黄舟

    黄舟2017-04-10 14:58:15

    看log好像是你在尝试转化一个存在循环引用的对象。

    reply
    0
  • PHP中文网

    PHP中文网2017-04-10 14:58:15

    http://stackoverflow.com/questions/2303713/how-to-serialize-dom-node-to-json

    这个问题的问题描述已经很清楚的说明了原因。

    reply
    0
  • Cancelreply