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

做个记录,我想用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

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

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


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

【热门文章】
【热门文章】