How can I send JSON data to server

前端 未结 7 1058
旧巷少年郎
旧巷少年郎 2021-01-04 00:25

Well, here is the story:

I have some data need to send to server, but they should turned into JSON dataType first.

I made such ajax call:

            


        
7条回答
  •  一向
    一向 (楼主)
    2021-01-04 01:15

    Also, is necesary can create a parameter and assign the value with JSON.stringify

    ....
    data: "jsonString="+JSON.stringify(data),
    ...
    

提交回复
热议问题