uploadify 的 formData 如何在JAVA的servelt中获取
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException { String someValue = request.getParameter("someKey"); String someOtherValue = request.getParameter("someOtherKey"); }
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException { String someValue = request.getParameter("someKey"); String someOtherValue = request.getParameter("someOtherKey"); }
formData参数只是通过get或post发送数据到后端,后端该怎么获取前端传的数据就怎么获取
解决了 method要传get方法