JS serialization and deserialization

1. In the sequence of Js is to be converted into a string object
that we can use toJsonString Stringify conversion and
2. deserialize talk is converted into a string Json Object
can parse, parseJson, eval
usage scene
1. Data transfer to the background, receiving a return value back
2. pass data between pages
for example:
Here Insert Picture Description
this is the object into a string

Guess you like

Origin blog.csdn.net/xiaoHelloWord/article/details/95327358