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
相關文章
相關標籤/搜索