2016年7月7日

摘要: 1.jsp中操作session <% String name=(String)request.getSession().getAttribute("username"); // 获取request.getSession().setAttribute("username", "xxx"); // 设置 阅读全文
posted @ 2016-07-07 15:13 莫云海 阅读(1578) 评论(0) 推荐(0)

2016年7月6日

摘要: js里用jQuery.post去后台查询数据,返回的是xml格式的数据流。 js代码: var params = ""; params = encodeURI(params); var url = "frame.query.action"; jQuery.post(url, params, func 阅读全文
posted @ 2016-07-06 12:13 莫云海 阅读(383) 评论(0) 推荐(0)