所有通过 String xxx = request.getParameter("参数"); 接受的参数都是一个字符串, 所以有时候必须通过转换 . 如需要int类型 int XXX = Integer.parseInt(xxx);