javascript - How to get all the data in a page and then convert it into a json format string and pass it to the background
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-05-16 13:36:21
0
2
409

The data in the page is placed in a p according to the user's selection, but after obtaining the data of the page pair, how to make it into a json format string.

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all (2)
我想大声告诉你

Sounds like a form, which can be obtained with jQuery and then sent to the backend using ajax
It is recommended that the subject post the code, otherwise it will be difficult to judge

    过去多啦不再A梦
    var jsonStr = JSON.stringify(jsonData); var jsonData = JSON.parse(jsonStr);
      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!