摘要: jsp传数据: <a id="a1" href="" ></a> <script> $("#a1").attr("href","servlet名字?数据1=xxx&数据2=xxx&数据3=xxx"); </script> servlet在doGet方法中接收数据: request.getParame 阅读全文
posted @ 2019-12-19 10:35 瓜皮学生 阅读(1208) 评论(0) 推荐(0) 编辑
摘要: 有2个方法:1). int i = Integer.parseInt(str); 2). int i = Integer.valueOf(str).intValue(); 阅读全文
posted @ 2019-12-19 10:33 瓜皮学生 阅读(7323) 评论(1) 推荐(0) 编辑