
注意:
1.在发送数据时,data键的值一定要写成JSON.stringify(json),将数据转换成json格式,否则会抛出异常
2.basePath是项目根目录:
<%
String path = request.getContextPath();
String basePath = request.getScheme()+`“://“+request.getServerName()+“:“+request.getServerPort()+path+“/“`;
%>
controller接收参数时,只要用把 datas传获取就行了

原文链接: https://onlyou.blog.csdn.net//article/details/86226952