how to set custom length property for javascript?

前端 未结 0 1632
南笙
南笙 2020-12-28 11:03

how to set custom length property for javascript? Is it like this?

class coord {
    constructor(x, y) {
    }
    get length() {
        return //something
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题