oojs icon indicating copy to clipboard operation
oojs copied to clipboard

第六章194页和197页

Open Shsgear opened this issue 8 years ago • 0 comments

194页object()倒数第九行,只有triangle继承了twoDee,而twoDee却没有继承shape,所以按照原书说法,triangle.toString()是不存在的。 应该在倒数第九行前添加 『var twoDee = object(shape); twoDee.name = "2D shape"; twoDee.toString = function(){ return this.uber.toString()+', '+this.name; } 』 应是原著没有写明。

197页倒数第11行处,原文 『 if(stuff has Own Property(1) ) 』 应更正为『 if(stuff hasOwnProperty(i) ) 』

Shsgear avatar Mar 15 '17 10:03 Shsgear