Serializing and unserializing an array in javascript

后端 未结 3 1865
无人共我
无人共我 2021-02-02 09:13

I\'m using the tag-it library for jquery to make a tagging system (a bit like the stackoverflow one).

After the user types his tags the library returns a javascript arra

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-02 09:54

    You can use JavaScript Object Notation(JSON) format.

    Javascript supports these methods:

    • JSON.stringify -> serializes object to string

    • JSON.parse -> deserializes object from string

提交回复
热议问题