Serialize internal Javascript objects (e.g. Range)

I would like to save some internal Javascript object, such as Range, but I have not found a way to save it. What is the best way to save it? I decided to serialize it, but I did not find anything on the net.

Is there a library that helps to do this? Jquery

+4
source share
1 answer

Take a look at the javascript stringify () function, which moves around. See here:

http://www.thomasfrank.se/json_stringify_revisited.html

Direct link to the code .

0
source

Source: https://habr.com/ru/post/1285914/


All Articles