javascript - 做个记录,我想用JSON.stringify把DOM的attributes转成字符串的时候报错
PHP中文网
PHP中文网 2017-04-10 14:56:15
0
2
528
'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中文网

认证高级PHP讲师

reply all(2)
黄舟

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

Ty80

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

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template