Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1494353
  • 博文数量: 329
  • 博客积分: 2773
  • 博客等级: 少校
  • 技术积分: 4219
  • 用 户 组: 普通用户
  • 注册时间: 2012-02-24 14:17
个人简介

淡定从容,宁静致远

文章分类

全部博文(329)

文章存档

2016年(4)

2015年(50)

2014年(68)

2013年(45)

2012年(162)

发布时间:2014-10-29 10:35:07

public String addAjax(HttpServletRequest req, HttpServletResponse resp)throws ServletException, IOException {//以输出流的形式给前台返回结果,经过前台验证是否保存数据成功resp.setContentType("textml;charset=UTF-8");PrintWriter out = resp.getWriter();if (Isaddsuccess) {out.write("inserUserSuccess.........【阅读全文】

阅读(1446) | 评论(0) | 转发(0)

发布时间:2014-10-29 09:58:50

<style type="text/css">.errorClass {background: no-repeat #fef2f2;color: #f40000;font-size: 8pt;border: 1px solid #ffb8b8;}</style>添加样式$().addClass();删除样式$().removeClass();文本值$().text();......【阅读全文】

阅读(859) | 评论(0) | 转发(0)

发布时间:2014-10-28 11:27:23

<td class="ta_01" bgColor="#ffffff"> <c:choose> <c:when test="${User.sex eq 0}">男</c:when> <c:when test="${User.sex eq 1}">女</c:when> <c:otherwise>qita</c:otherwise> </c:choose></td> ......【阅读全文】

阅读(782) | 评论(0) | 转发(1)

发布时间:2014-10-26 10:49:37

public String doPost(HttpServletRequest req, HttpServletResponse resp)throws ServletException, IOException {Users user = new Users();Map map = req.getParameterMap();try {//把前台传过来的数据封装进JavaBeanBeanUtils.populate(user, map);} catch (Exception e) {e.printStackTrace();}if(S.........【阅读全文】

阅读(4068) | 评论(0) | 转发(0)

发布时间:2014-10-24 16:06:13

$.ajax({url:"${pageContext.request.contextPath}/Servlet",data:{method:"方法名字",name:value},type:"POST",dataType:"json",async:false,cache:false,success:function(result){if(!result){$("#"+id+"Error").text("你不好");return false;}}});......【阅读全文】

阅读(690) | 评论(0) | 转发(0)
给主人留下些什么吧!~~

onlyword2017-06-23 11:39

回复  |  举报

勤劳致富linux2012-06-15 09:41

回复  |  举报

勤劳致富linux2012-06-01 11:43

老大,好饿呀,吃饭吧!

回复  |  举报

勤劳致富linux2012-05-31 17:50

老大,我来过!

回复  |  举报

llweiyang2012-03-30 11:04

回复  |  举报
留言热议
请登录后留言。

登录 注册