07 2022 档案

摘要:在ES6中,类中定义的方法,是放在原型对象的,供实例对象引用。 //创建一个Person类 class Person { constructor(name,age) { this.name = name; this.age = age; } } class Student extends Perso 阅读全文
posted @ 2022-07-31 11:28 JohnYang819 阅读(313) 评论(0) 推荐(0) 编辑
摘要:'use strict'; const SecretHolder = (function () { const secrets = new WeakMap(); return class { constructor() { this.test = secrets; } setSecrete(secr 阅读全文
posted @ 2022-07-23 16:42 JohnYang819 阅读(129) 评论(0) 推荐(0) 编辑
摘要:上图,左图为一个球体的三维图,其中一个圆面以θ角(范围为[0,PI])的方式确定,该圆面在x-z坐标平面投影如右图,其中圆面上任意一点又由α确定(范围为[0,2PI])。 假定该球体半径为r,那么球面任意一点均可以用r,θ,α唯一确定,确定关系如下: x=rsinθcosα;y=rcosθ;z=rs 阅读全文
posted @ 2022-07-09 11:23 JohnYang819 阅读(451) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示