This is a hydrology, water experience, hahaha

When I typed the code today, I found a problem. A value defined on my page suddenly failed when I fetched it from the session. On closer inspection, I found that I had corrupted json.stringify when saving the session, and then used json.parse when retrieving the string variable. The string variable changed to number, so the error reminded me of a code I typed a long, long time ago: The last time I did a file upload, after the file was uploaded, I should have sent an array to the background. I also sent an array to the background, but the background returned an error. The console array is not arr:[], but arr[0]: ‘da da da’. Not a strict JSON object, so the request failed, hahaha.

Parse () can be converted to json.parse ()

 let ajaxData =  JSON.parse('Your request parameters')
Copy the code