摘要:
$.ajax({ url: '192.168.1.108:8080/Test/GetPersonInfo', // 替换为你的API端点URL type: 'POST', // 指定请求类型为POST contentType: 'application/json', // 发送数据到服务器时所使用的 阅读全文
posted @ 2024-09-26 21:27
初秋的小溪
阅读(45)
评论(0)
推荐(0)
摘要:
1)将string直接转为json 【注:适合信息量比较少的情况】 string str = "{\"id\":\"s001\",\"name\":\"张三\",\"gender\":\"男\"}" 【注:上述中\起转义作用】 2)将string信息转为list对象后再通过list对象转为json 阅读全文
posted @ 2024-09-26 21:17
初秋的小溪
阅读(757)
评论(0)
推荐(0)
浙公网安备 33010602011771号