springmvc框架 var param = new Object(); var arr = new Array(); arr.push(1,2,3); param.ids=JSON.stringify(arr);var user = new Object(); user.name="hehe"; user.age=22; user.gender="man"; param.user=JSON.stringify(user);$.ajax({ type:"…
下面我将写出一个函数,用来获取GET方法提交的参数 function getParameter(parameterName) { var string = window.location.search; var indexStart = string.indexOf(parameterName+"="); if(indexStart==-1) return false; var result = string.slice(indexStart+parameterName.length+…