Attribute是属性的意思,文章仅对部分兼容IE和FF的Attribute相关的介绍。 attributes:获取一个属性作为对象 getAttribute:获取某一个属性的值setAttribute:建立一个属性,并同时给属性捆绑一个值createAttribute:仅建立一个属性remove ...
分类:
Web程序 时间:
2016-05-18 23:55:52
阅读次数:
204
function Copy() { //step 1 查询当前信息 var new_code = Xrm.Page.getAttribute("new_code").getValue();//促销编号 var new_name = Xrm.Page.getAttribute("new_name"). ...
分类:
其他好文 时间:
2016-05-18 10:43:57
阅读次数:
305
本文主要介绍JSP中的request对象 request对象的主要方法: setAttribute(String name,Object):设置名字为name的request的参数值 getAttribute(String name):返回由name指定的属性值 getAttributeNames( ...
分类:
Web程序 时间:
2016-05-15 19:48:13
阅读次数:
198
1.session.setAttribute()和session.getAttribute()配对使用,作用域是整个会话期间,在所有的页面都使用这些数据的时候使用。 2.request.setAttribute()和request.getAttribute()配对使用,作用域是请求和被请求页面之间。 ...
分类:
其他好文 时间:
2016-05-11 21:48:26
阅读次数:
108
一、根据元素的ID找到该元素,存于一个变量中: var a = document.getElementById("id"); 然后可以对该元素的属性进行操作: a.setAttribute("属性名","属性值"); 设置一个属性,添加或更改都可以; a.getAttribute("属性名");获取 ...
7. MVC 设计模式. 6. 和属性相关的方法: 1). 方法 void setAttribute(String name, Object o): 设置属性 Object getAttribute(String name): 获取指定的属性 Enumeration getAttributeName ...
分类:
Web程序 时间:
2016-05-11 11:10:55
阅读次数:
222
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Object username=session.getAttribute("username");
%...
分类:
其他好文 时间:
2016-05-06 16:12:15
阅读次数:
236
getParameter 方法获取的是表单或 URL 的请求参数。参数是从 Web 客户端传递至 Web 服务端。例如有如下的 servlet: 当接收 /hello?foo=a&bar=b 请求时,容器便将 foo 和 bar 这两个参数通过 HttpServletRequest 传递至 doGe ...
分类:
Web程序 时间:
2016-04-30 00:59:35
阅读次数:
333
这个问题老生常谈,但是直到现在我依旧时常会把它搞混。下面列一些各自的特性。 option.setAttribute('selected', true) option.getAttribute('selected') 会表现在html节点上。打开控制台,可以看到 <option selected=tr ...
分类:
其他好文 时间:
2016-04-27 22:39:35
阅读次数:
253
HTML 元素标准的属性: id 元素在文档中的唯一标识符 title 附加说明信息 lang 元素内容的代码 很少使用 className 与元素的class 特性对应 dir 语言的方向 很少使用 1,取得特性 getAttribute() 给定名称的特性不存在时 返回null 2,... ...
分类:
其他好文 时间:
2016-04-24 18:30:44
阅读次数:
137