js Class 与 普通构造函数有何区别

  1、js构造函数 let myCanvas = this.$refs.myCanvas var ctx = myCanvas.getContext('2d') function Circle (x, y, r, color) { this.x = x this.y = y this.r = r this.colo
相关文章
相关标签/搜索