JS变量作用域
    
            
摘要:【JS变量作用域】 JS代码的工作分类2个阶段: 1、解释期(编译期),这个阶段找出所有的var以及var对应的作用域 2、运行期,开始执行代码 JS对变量的搜索顺序: 所以不难理解为什么放置在for循环里的变量,每次循环都是同一个对象了--因为变量是在解释期分配的。
        
阅读全文
摘要:【360度全景技术】 很想研究研究,Mark一下,以后有空了研究研究。
        
阅读全文
摘要:【TCP的可靠性】 接收方TCP将会对发送方的TCP做出保证,该保证就是它确认的任何数据以及在它之前到达的所有数据在TCP层已经被正确的接收到了,然后通知发送方TCP可以安全的丢弃数据在内核中的拷贝。但是,这并不意味着该数据已经传递给应用程序了,也不意味它一定会传递到。考虑一种失败模式,例如,接收方主机可能在确认数据之后但在应用程序读取数据之前崩溃。进一步考虑这个问题:TCP提供的通知发送方数据已经接收到的唯一消息就是ACK。也意味着发送方应用程序并没有被TCP告诉数据是否被对等方应用程序实际接收到了。 所以,TCP能够\保证的事情是到达的所有数据时有序并且是没有被破坏的。这也就是TCP的..
        
阅读全文
摘要:【What is a Digital Signature?】参考:http://www.youdzone.com/signature.html
        
阅读全文
摘要:【JavaScript要点】命名变量变量名需要遵守两条简单的规则:第一个字符必须是字母、下划线(_)或美元符号($)余下的字符可以是下划线、美元符号或任何字母或数字字符下面的变量都是合法的:var test;var $test;var $1;var _$te$t2;注:与C++相比,多了美元符号$这个东西可用,所以$不是像shell中是一种对变量的引用。Object 对象Object 对象自身用处不大,不过在了解其他类之前,还是应该了解它。因为 ECMAScript 中的 Object 对象与 Java 中的 java.lang.Object 相似,ECMAScript 中的所有对象都由这个对
        
阅读全文
摘要:【HTML记要】 1.HTML 标题(Heading)是通过 <h1> - <h6> 等标签进行定义的。默认1最大,6最小。 2.HTML 标签对大小写不敏感。 3.HTML 代码中的所有连续的空行(换行)也被显示为一个空格 4.text是显示的文本,html是原始的代码。参考:http://www
        
阅读全文
摘要:【All About BHO】 IE6中,因为一个iexplore.exe只有一个窗口,所以一个iexplore.exe加载一份BHO。 IE8中,一个iexplore.exe有多个tab,每个tab生成一个你的BHO对象。 每一个窗口,对应一个IWebBrowser对象,对应一个或多个IHTMLWindow、IHTMLDocument,每个IHTMLDocument与IHTMLWindow一一对应。 多个IHTMLWindow之间有层级关系,只有一个窗口是顶级窗口。
        
阅读全文
摘要:【RelationShip】 Typically, the browser creates onewindowobject when it opens anHTMLdocument. However, if a document defines one or more frames—that is, contains one or moreframeoriframetags—the browser creates onewindowobject for the original document and one additionalwindowobject for each frame. ..
        
阅读全文
摘要:来到了新公司,可是又好怀念TX,想念过去的2年……离开了却又想着,TX真好
        
阅读全文
摘要:【OLE vs. Active Technology】 OLE vs. Active technology: The name OLE denotes the technologies associated with linking and embedding, including OLE containers, OLE servers, OLE items, in-place activation (or visual editing), trackers, drag and drop, menu merging. The term Active applies to the Compon.
        
阅读全文
摘要:【Fundamentals of ATL COM Objects】The following illustration depicts the relationship among the various classes and interfaces used in defining an ATL COM object.ATL implementsIUnknownin two phases:CComObject,CComAggObject, orCComPolyObjectimplements theIUnknownmethods.CComObjectRootorCComObjectRootE
        
阅读全文
摘要:【Automation Clients】 Automation makes it possible for your application to manipulate objects implemented in another application, or to expose objects so they can be manipulated. An automation client is an application that can manipulate exposed objects belonging to another application. The applicat.
        
阅读全文
摘要:【ActiveX Control Test Container】 在windows7系统中,vs2008环境下用MFC ActiveX Control生成的tstcon32.exe在win7下不能运行,但是在xp系统中却能正常编译,解决方法: 分别在TstCon和TCProps两个Project的StdAfx.h文件加入 #define _WIN32_WINNT 0x0600. 原始TstCon工程没有相应语句之间添加即可;原始TCProps工程将#define _WIN32_WINNT 0x0400改为#define _WIN32_WINNT 0x0600即可。参考:http://ww...
        
阅读全文
摘要:【包容与聚合】 左边的是包容,右边的是聚合。
        
阅读全文
摘要:【Mark-and-sweep algorithm】 This algorithm reduces the definition of "an object is not needed anymore" to "an object is unreachable". 从"an object is no
        
阅读全文
摘要:【Closures】 A closure is a special kind of object that combines two things: a function, and the environment in which that function was created. Just like block in Objective-C.But Objective-C Block is more weird, cause Block contains a distinctterminology between copy & retain. Here's a slight
        
阅读全文
摘要:【JavaScript Inheritance】 1、Inheriting properties JavaScript objects are dynamic "bags" of properties (referred to as own properties). JavaScript objec
        
阅读全文
摘要:【换行】 在 Windows 应用程序中,换行通常以一对字符来存储:回车符 (CR) 和换行符 (LF)。 在 Unix 应用程序中,新行以 LF 字符存储。 而 Macintosh 应用程序使用 CR 来存储新行。
        
阅读全文
摘要:【HTML-DOM】 DOM 是这样规定的: 整个文档是一个文档节点 每个 HTML 标签是一个元素节点 包含在 HTML 元素中的文本是文本节点 每一个 HTML 属性是一个属性节点 注释属于注释节点 所以HTML-DOM总共有5类结点 【层叠次序】 当同一个 HTML 元素被不止一个样式定义时,
        
阅读全文