前台ajax传值,后台接收不到参数问题,mysql You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
java / 2017-12-5 23:33:12 4,492 views

这里rowOwn,columnOwn,areaNameOwn的类型为array,后台用String rowOwn=request.getParameter(“rowOwn”);是接收不到的 ,其中request.getParameter的参数可以为ajax中data的value名 因为它们的数据类型不同。后台接收到的为字符串。而前台传过去的为数组,所以需要把数组转换为字符串 $.ajax({ ty…