Remove the quotes from the JSON object

The content of msg.data in the JSON object passed by the received child window is: "This is the information passed by the child window"

Now we need the content in quotation marks, that is, remove the quotation marks.

practice:

JSON.parse(JSON.stringify(msg.data))

result:

Guess you like

Origin blog.csdn.net/michaelxuzhi___/article/details/106521824