
学习小记
「已注销」
这个作者很懒,什么都没留下…
展开
-
node中使用Object.defineProperties
通过Object.defineProperties设置属性时,可以为每个属性添加描述符,包括configurable、enumerable、writable、set和get。其中enumerable表示该属性是否是可枚举,默认值为false,在node环境中,如果不显式指定enumerable为true,则会忽略掉当前属性。...原创 2021-05-07 15:27:43 · 301 阅读 · 1 评论 -
eventBus实现思路
原创 2020-09-15 13:23:39 · 161 阅读 · 1 评论 -
对JS中原型的理解
JavaScript原型在学习原型之前,先看一下MDN文档中关于原型的描述:JavaScript is often described as a prototype-based language — to provide inheritance, objects can have a prototype object, which acts as a template object that it inherits methods and properties from.An object’s pro原创 2020-08-22 22:02:46 · 656 阅读 · 1 评论