Open WHFF521 opened 3 months ago
https://blog.whff521.xyz/2024/06/17/Eloquent-JavaScript-06-Exercises/
对象To the book page A vector type封装一个类,实现坐标的加减法,以及get属性的length返回坐标离原点的距离。 12345678910111213141516171819202122// Your code here.class Vec{ constructor(x,y){ this.x = x; this.y
https://blog.whff521.xyz/2024/06/17/Eloquent-JavaScript-06-Exercises/
对象To the book page A vector type封装一个类,实现坐标的加减法,以及get属性的length返回坐标离原点的距离。 12345678910111213141516171819202122// Your code here.class Vec{ constructor(x,y){ this.x = x; this.y