另一个serlet就没问题,有弹窗,这个就直接打印代码。完全复制粘贴的,懵逼了
PrintWriter out=response.getWriter();thingService.addLostThing(thing);out.print("<删script language='javascript'>alert('添加成功!');window.location.href='index.jsp';");没有删字