2013年10月15日

[转]理解js中的原型链,prototype与__proto__的关系

摘要: 本文转自:http://rockyuse.iteye.com/blog/1426510说到prototype,就不得不先说下new的过程。我们先看看这样一段代码:1很简单的一段代码,我们来看看这个new究竟做了什么?我们可以把new的过程拆分成以下三步: var p={}; 也就是说,初始化一个对象p。 p.__proto__=Person.prototype; Person.call(p);也就是说构造p,也可以称之为初始化p。关键在于第二步,我们来证明一下:1这段代码会返回true。说明我们步骤2的正确。那么__proto__是什么?我们在这里简单地说下。每个对象都会在其内部初始化一个属性 阅读全文

posted @ 2013-10-15 16:59 freeliver54 阅读(262) 评论(0) 推荐(0)

[转]Maintain File Upload Control on Postbacks

摘要: 本文转自:http://www.ironspeed.com/articles/Maintain%20File%20Upload%20Control/Article.aspxIntroductionFor security reasons, the File Upload control does not save the posted file name in its View State, so the file is lost on postback. This is not a bug; it was designed this way so the file cannot be hij 阅读全文

posted @ 2013-10-15 10:52 freeliver54 阅读(373) 评论(0) 推荐(0)

导航