原来一直没有仔细区分过这两个方法。遇到问题才去好好学习了一下,特此总结一下
通俗的概括一下。区别有两点:
一、request.getAttribute():是request时设置的变量的值,用request.setAttribute("name","您自己的值");来设置值;
request.getParameter():提取发送过来的参数如:本网页http://commu...
分类:
其他好文 时间:
2015-07-09 16:11:34
阅读次数:
93
改动 swipe.jstransitionEnd: function(event) { if (parseInt(event.target.getAttribute('data-index'), 10) == index) { //if (delay) begin();...
分类:
其他好文 时间:
2015-07-08 18:24:22
阅读次数:
207
jsp中:1 (String)request.getSession().getAttribute("username"); // 获取2 request.getSession().setAttribute("username", "xxx"); // 设置Java中: 1 //servlet中 2....
分类:
编程语言 时间:
2015-07-08 02:02:30
阅读次数:
267
getAttribute & setAttribute 获取和设置属性getAttribute 获取属性:语法:object.getAttribute(attribute); 这个方法不属于document对象,所以不能使用document对象调用,只能通过元素节点对象调用;后面的setAttri....
分类:
Web程序 时间:
2015-07-08 00:11:11
阅读次数:
216
1、获取微信js所必须的签名 1 logger.info("获取凭证.."); 2 String code=(String) SecurityUtils.getSubject().getSession().getAttribute("Sign_code"); 3 ...
分类:
微信 时间:
2015-07-06 19:27:44
阅读次数:
254
1. JSP内置对象分类(1)application:javax.servlet.ServletContext的实例,该实例代表JSP所属的WEB应用本身,可用于JSP页面,或者Servlet之间交换信息。常用的方法有getAttribute(String attName), setAttribut...
分类:
Web程序 时间:
2015-07-02 17:12:08
阅读次数:
142
getElementsByTagName(“x”)xx.getAttribute(“y”) //xx元素的y属性xx.lastChild.nodeValue //获得xx的文本内容document.createElement(“xx”) //创建xx元素document.createTextNode...
分类:
编程语言 时间:
2015-06-30 10:06:19
阅读次数:
119
一 、xml.dom 解析XML的API描述 minidom.parse(filename) ? 加载读取XML文件 doc.documentElement ? 获取XML文档对象 node.getAttribute(AttributeName) ? 获取XML节点属性值 node.getElementsByTagName(TagN...
分类:
编程语言 时间:
2015-06-29 20:41:48
阅读次数:
147
一、获取特定元素节点的属性的值_getAttribute() 1、getAttribute()方法将获取元素中某个属性的值。它和直接使用.属性获取属性值的方法有一定区别。测试Div二、设置特定元素节点的属性的值_setAttribute() 1、setAttribute()方法将设置元素中某个属.....
分类:
编程语言 时间:
2015-06-19 01:30:17
阅读次数:
306
1 ? ? session存储策略 存储,即在后台使用session的setAttribute,getAttribute等方法时,这些内部存放的数据最终存储至什么位置。比如在默认的tomcat实现中,相应的数据即存储在内存中,并在停止之后会序列化至...
分类:
编程语言 时间:
2015-06-18 20:22:37
阅读次数:
125