12 2013 档案

摘要:创建节点:createElement();createTextNode()复制节点:cloneNode()插入节点:appendChild();insertBefore()删除节点:removeChild()替换节点:replaceChild()设置节点属性:setAttribute()查找节点:getAttribute();getElementById();getElementsByTagName();hasChildNodes节点的属性:nodeName;nodeType;nodeValue遍历节点树:childNodes;firstChild;lastChild;nextSibling; 阅读全文
posted @ 2013-12-14 16:04 11014p 编辑
摘要:一、js常用方法1.document.write("");为输出语句2.JS中的注释为//3.传统的HTML文档顺序是:document->html->(head,body)4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,document)5.得到表单中元素的名称和值:document.getElementById("表单中元素的ID号").name(或value)6.一个小写转大写的JS:document.getElementById("output& 阅读全文
posted @ 2013-12-14 16:03 11014p 编辑
摘要:jsp内置对象 定义:可以不加声明就在JSP页面脚本(Java程序片和Java表达式)中使用的成员变量。 JSP共有以下9种基本内置组件(可与ASP的6种内部组件相对应): 1.request对象 客户端的请求信息被封装在request对象中,通过它才能了解到客户的需求,然后做出响应。它是HttpServletRequest类的实例。 序号 方 法 说 明 1 object getAttribute(String name) 返回指定属性的属性值 2 Enumeration getAttributeNames() 返回所有可用属性名的枚举 3 String ge... 阅读全文
posted @ 2013-12-10 22:12 11014p 编辑

点击右上角即可分享
微信分享提示