摘要: 不要在类构造器内实例化当前对象也就是说不要将类class当做function使用 请抛弃旧有的编码习惯: function Element (tagName, props, children) { if (!(this instanceof Element)) { if (!_.isArray(ch 阅读全文
posted @ 2021-03-05 17:44 小云菜 阅读(95) 评论(0) 推荐(0) 编辑