📌  相关文章
📜  如何在 ajax 调用中传递 json 格式数据 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:18.147000             🧑  作者: Mango

代码示例1
BY LOVE

1- Pass the JSON format data in this way
data: { "str1": "Love", "str2": "Singh" }
2- You can use JSON.Stringfy function also
var employee = { Id: 101, Name: "Love singh" };  
data: JSON.stringify(employee)