![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
modun1986
这个作者很懒,什么都没留下…
展开
-
Type-Checking Variables
Type-Checking Variables Variable typeof Variable Variable.constructor { an: “object” } object Object [ “an”, “arra...2009-03-12 23:44:00 · 118 阅读 · 0 评论 -
Javascript Closure
翻译原文:http://blog.csdn.net/Ant_Yan/archive/2008/09/24/2972572.aspx英文原文:http://jibbering.com/faq/faq_notes/closures.html Closure介绍Js闭包是一种封闭代码块(一般来说是一个函数),它包含了自由变量和绑定这些自由变量的环境,这些变量不是在这个代码块或者...原创 2009-03-16 22:52:38 · 69 阅读 · 0 评论 -
javascript Classical Inheritance
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><met原创 2009-03-18 23:31:25 · 87 阅读 · 0 评论 -
js nodeType
Element (nodeType = 1): This matches most elements in an XML file. For example, <li>,<a>, <p>, and <body> elements all have a nodeType of 1. Text (nodeType = 3): This match...原创 2009-03-20 15:17:32 · 210 阅读 · 0 评论 -
关于js的判断
通常在java里面我们boolean的值才能用在 if while 等循环语句的判断里面, <body> <p id="a">aaaaa</p><script language="javascript"> function prev(element){ do{ element = element.previousS...原创 2009-03-22 23:43:06 · 69 阅读 · 0 评论 -
html加载过程
* HTML is parsed. * External scripts/style sheets are loaded. * Scripts are executed as they are parsed in the document. * HTML DOM is fully constructed. * Images an...原创 2009-03-23 09:04:00 · 78 阅读 · 0 评论 -
setTimeout 和 setInterval 的区别
原文地址:http://www.cnblogs.com/tuyile006/archive/2008/02/18/1072748.htmlsetTimeout (表达式,延时时间)setInterval(表达式,交互时间)延时时间/交互时间是以豪秒为单位的(1000ms=1s)setTimeout 在执行时,是在载入后延迟指定时间后,去执行一次表达式,仅执行一次setInterval 在执行...原创 2009-03-23 15:21:04 · 68 阅读 · 0 评论 -
通过clss属性查找元素
function hasClass(name,type) { var r = []; // Locate the class name (allows for multiple class names) var re = new RegExp("(^|\\s)" + name + "(\\s|$)"); // Limit search by type...原创 2009-03-23 21:31:26 · 111 阅读 · 0 评论 -
获得一个不能预知高度的DIV的高度
通过元素的clientHeight属性能够得到元素的高度,如:var height = element.clientHeight;这种做法的局限:1. 如果元素的display属性设置为none, 那么得到的结果为02. 在safari浏览器中,需要使用:element.offsetHeight得到实际高度,这是safari浏览器的bug下面是Prototype提供的方...原创 2009-04-29 21:39:39 · 113 阅读 · 0 评论