03 2012 档案
摘要:MIME TypeDescriptiontext/plainPlain text. Default if data is primarily text and no other type detected.text/htmlHTML. Default if common tags detected and server does not supply image/* type.text/xmlXML data. Default if data specifies<?xmlwith an unrecognized DTD.text/richtextRich Text Format (RTF
阅读全文
摘要:本文详细描述现代浏览器的工作原理,为你开发出更好的应用提供指导http://www.html5rocks.com/en/tutorials/internals/howbrowserswork/
阅读全文
摘要:众所周知,ie下删除一个节点后并不能释放掉所占内存,即使是刷新后也还存在。所以这就需要一些方法。 function remove(node){ var div = document.createElement("div"); div.appendChild(node); div.innerHTML = ""; div = null;}
阅读全文
摘要:IE8 新增的Javascript 对象 (Object)Attr ConstructorDefines the properties and methods inherited by objects in theAttr Constructorprototype chain.BehaviorUrnsCollection ConstructorDefines the properties and methods inherited by objects in theBehaviorUrnsCollection Constructorprototype chain.BookmarkCollect
阅读全文
摘要:最近比较关注浏览器的内存泄露问题,找到如下资料,有需要的同学可以拿来看看:JavaScript 中的内存泄露模式http://www.ibm.com/developerworks/cn/web/wa-memleak/
阅读全文
摘要:对于一个类: 1 function Class(){} 怎样既可以用Class()调用,也可以用new Class()调用,关键就在this,如下代码:function Class(){ alert(this);} Class()调用会弹出DOMWindow对象,在IE6下是object。 new Class()调用会弹出Class对象,在IE6下是object。 所以解决方法如下: function Class(){ if(this === window)return new Class(); /** * some code... ...
阅读全文
摘要:一直想了解jquery选择器的实现,在网上搜了一下发现这个,有兴趣的同学可以研究一下。http://sizzlejs.com/
阅读全文
摘要:IE Sieve 主要用来检测 JavaScript 编程中,IE 运行时,内存的泄露情况。下载地址:http://www.oschina.net/p/iesieve
阅读全文
摘要:今天看到《Dom Scripting》书上说childNodes可以获取所有子节点,顿时产生疑惑,childNodes不是只能获取一级子节点吗,不能获取子节点的子节点。带着疑问随手做了个实验,原本偷懒,用DW的快捷键Ctrl+num生成如下结构:1 <h1 id="h"><h2><h3><h4><h5><h6></h6></h5></h4></h3></h2></h1>然后js她: 1 var h = document.getEle
阅读全文
浙公网安备 33010602011771号