在Action中保存登录的基本信息:request.getSession().setAttribute("adminid", str);在JSP页面中:${sessionScope.adminid}java:request.setAttribute("adminid",str);在JSP页面中:${...
分类:
其他好文 时间:
2015-08-06 01:54:41
阅读次数:
164
本周,继续上周未看完的部分,了解了 getELementById,getElementsByName,getElementdByTagName三者的基本区别;用setAttribute()方法通过获取元素节点的属性名称获取属性的值;各元素类型所对应的节点类型(元素——1属性——2文本——3注释—.....
分类:
其他好文 时间:
2015-08-04 12:53:46
阅读次数:
123
request.setAttribute("result",username); 在request对象中加入名为result的属性并附值为username,因为request对象是可以更改的,你可以在同一个请求中象这样访问这个属性。虽然类似session,但与session是有所区别的,req...
分类:
编程语言 时间:
2015-08-01 06:23:39
阅读次数:
125
document.getElementById('Add').setAttribute("onclick",AddNum());相当于不停的调用Addnum函数应改成document.getElementById('Add').setAttribute("onclick","AddNum()")Jq...
分类:
Web程序 时间:
2015-07-31 14:47:41
阅读次数:
161
Qt窗体关闭时,如何自动销毁窗体类对象要对你的窗口设置WA_DeleteOnClose属性,默认的情况下关闭窗口仅仅意味着隐藏它 ImgWindow1->setAttribute(Qt::WA_DeleteOnClose, true);
设置PDO在处理数据的过程中采用什么方式去处理PDO::setAttribute:设置属性PDO::getAttribute:获取属性语法:bool PDO::setAttribute ( int $attribute , mixed $value )设置数据库句柄属性。下面列出了一些可用的通用属性...
分类:
Web程序 时间:
2015-07-24 12:40:39
阅读次数:
138
IE6和IE7是否支持setAttribute()函数:setAttribute()函数可以设置对象的属性,如果不存在此属性,则会创建此属性。语法结构:el.setAttribute(name,value)参数列表:参数描述name必需。规定要设置的属性名。value必需。规定要设置的属性值。代码实...
分类:
其他好文 时间:
2015-07-17 15:45:47
阅读次数:
116
HttpSession session=request.getSession(); session.setAttribute("online",user); //当前的登录用户名 session.setAttribute("quanxian",flag); //当前用户的权限response.s.....
分类:
Web程序 时间:
2015-07-17 13:49:53
阅读次数:
160
赋值<%Datedate=newDate();request.setAttribute("date",date);%>取值${date}(1)JSP页面:request.setAttribute("date",newDate());(2)EL表达式JSP显示服务器上的时间:${date}(3)如果你仅仅只想在获得本地上的时间,你只要用js就可以获得了<script>vardate=newDate()..
分类:
Web程序 时间:
2015-07-15 23:05:13
阅读次数:
120