前端哥

Spring MVC-JSON

2024-06-02以json的格式发送给后端function sendjson() {$.ajax({ type:“post”,url:“${pageContext.request.contextPath }/json”,data:‘{“id”:“1”,“name”:“yixin”,“pwd”:“1999”}’,contentType:“application/json;charset=utf-8”,success:function(data) {alert(data.id “:” data.name);} });

https://www.qianduange.cn//article/10560.html 分类:前端知识

1条数据,当前1/1

最近搜索

会员中心 联系我 留言建议 回顶部