![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
面向对象
少油少盐不要辣
趁着年轻,去折腾,去改变吧
展开
-
面向对象之先理解对象
1.属性类别: 数据属性和访问器属性。都有四个描述其行为的特性。 数据属性: 1.configurable 2.enumerable 3.writable 4.value 若采用对象字面量定义的原创 2020-01-04 23:41:08 · 147 阅读 · 0 评论 -
惰性求值,面向对象
// 惰性求值 const _lazy = (function () { const MAX_ARRAY_LENGTH = 100; const LAZY_FILTER_FLAG = 1; const LAZY_MAP_FLAG = 2; LazyWrapper.prototype.filter = filter; LazyWrapper.proto...原创 2019-12-23 14:24:16 · 183 阅读 · 0 评论