2013年8月2日

浅谈Javascript的new运算符

摘要: 一、背景在网上看到一篇别人转的玉伯前辈关于“new FunctionName()运行机制浅析”的文章,里面举了一个例子,代码如下:function Dog(name) { this.name = name; Dog.prototype = { shout: function... 阅读全文

posted @ 2013-08-02 14:58 JoeRay 阅读(211) 评论(0) 推荐(2)

导航