【发布时间】:2014-10-28 06:03:10
【问题描述】:
我需要将 highcharts options 转换为 JSON 字符串。我真的在为此苦苦挣扎。
因为它有cuircual结构。
我也尝试使用 douglascrockford cycle.js 对其进行回收:https://github.com/douglascrockford/JSON-js
如果我尝试回收它,我会得到这个堆栈跟踪
'Attr.ownerElement' is deprecated and has been removed from DOM4 (http://w3.org/tr/dom). cycle.js:92
'Attr.textContent' is deprecated. Please use 'value' instead. cycle.js:92
'Attr.nodeValue' is deprecated. Please use 'value' instead. cycle.js:92
'HTMLHtmlElement.manifest' is deprecated. The manifest attribute only has an effect during the early stages of document load. cycle.js:92
InvalidStateError: Failed to read the 'selectionDirection' property from 'HTMLInputElement': The input element's type ('checkbox') does not support selection.
我需要这个,因为我想保存我的图表的配置,然后用那个配置加载它。
有没有办法做到这一点?
谢谢
【问题讨论】:
标签: javascript json highcharts stringify