码迷,mamicode.com
首页 >  
搜索关键字:setattribute    ( 657个结果
JSP实现数据保存(web基础学习笔记四)
session对象://服务端设置Session属性session.setAttribute("user", username);//客户端接收SessionObject obj = session.getAttribute("user"); //判断是否为空,不是空就输出 if(obj...
分类:Web程序   时间:2015-01-18 17:08:49    阅读次数:249
attribute与property区别总结
在前阵子看JQuery源码中,attr()的简单理解是调用了element.getAttribute()和element.setAttribute()方法,removeAttr()简单而言是调用element.removeAttribute(),而prop()简单理解是element.xxx方式存取...
分类:其他好文   时间:2015-01-15 23:42:09    阅读次数:198
通过 JDOM 方式生成 XML 文档
1.引入jdom jar包2.代码 Element ele = new Element("tree"); ele.setAttribute("id","0"); Document document = new Document(ele); ...
分类:其他好文   时间:2015-01-15 15:48:33    阅读次数:133
jstl的时间日期格式化标签
后台: request.setAttribute("today",new Date());前台: //不写type属性,和type="date"等价 结果: 2010-9-20 //type的默认值为date 结果:13:03:35 结果:2010-9-2...
分类:Web程序   时间:2015-01-10 16:29:43    阅读次数:389
如何定位到append的当前位置,不用拉滚动条scrollIntoView方法
1 var bb_mes_con = $('bb_mes_con');2 var mes_html = document.createElement('div');3 mes_html.setAttribute('id', 'mes_html');4 mes_html.innerHTML = ""+...
分类:移动开发   时间:2015-01-09 19:19:53    阅读次数:225
Launcher.jsp
2){ session.setAttribute("PROCESSING_BIZ_ENTITY",bizSegment.substring(0,3)); } } UserSecurityContext userSecurityContex...
分类:Web程序   时间:2015-01-07 20:29:28    阅读次数:414
request.getParameter() 和request.getAttribute() 区别
getParameter 是用来接受用post个get方法传递过来的参数的. getAttribute 必须先setAttribute. (1)request.getParameter() 取得是通过容器的实现来取得通过类似post,get等方式传入的数据,request.setAttribute()和getAttribute()只是在web容器内部流转,仅仅是请求处理阶段。 (2)...
分类:其他好文   时间:2015-01-04 15:22:01    阅读次数:96
js 向form表单中插入数据
var newElement = document.createElement("input");var nowtime=year+""+month+day+hour+minute+second;newElement.setAttribute("name","nowtime"); newEleme....
分类:Web程序   时间:2015-01-03 19:46:20    阅读次数:319
jsp中利用response.senddirect(str)重定向,传递参数新思路
用Servlet进行请求重定向,参数传递好办,直接用request.setAttribute(str1,str2);但是如果不用Servlet 而是直接用jsp进行转发呢?我们首先要知道 请求的重定向:在最终的Servlet中,request对象和中转的那个request不是同一个对象所以传递参数....
分类:Web程序   时间:2015-01-01 11:14:23    阅读次数:212
原生javascript添加引用js文件
functionaddScriptTag(src){varscript=document.createElement("script");script.setAttribute("type","text/javascript");script.src=src;document.body.app...
分类:编程语言   时间:2014-12-31 14:32:37    阅读次数:253
657条   上一页 1 ... 55 56 57 58 59 ... 66 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!