摘要: 方法一:基于canvas实现多个人物序列帧切换 (原生写法) class cavasAnimate { constructor(id, activeRw) { this.id = id; this.sourcesRw = {}; this.canvas = null; this.ctx = null 阅读全文
posted @ 2020-07-10 11:18 CatherLee 阅读(979) 评论(0) 推荐(0) 编辑
摘要: 每个函数都有一个 prototype 属性,函数的 prototype 属性指向了一个对象,这个对象正是调用该构造函数而创建的实例的原型。 那什么是原型呢?可以这样理解👉 每一个JavaScript对象(null除外)在创建的时候就会与之关联另一个对象,这个对象就是我们所说的原型,每一个对象都会从 阅读全文
posted @ 2020-07-10 11:06 CatherLee 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 一、数据类型与堆栈的关系 a、基本类型与引用类型 基本类型:undefined,null,Boolean,String,Number,Symbol 引用类型:Object,Array,Date,Function,RegExp等 b、存储方式 基本类型:基本类型值在内存中占据固定大小,保存在栈内存中( 阅读全文
posted @ 2020-07-10 11:03 CatherLee 阅读(446) 评论(0) 推荐(0) 编辑