0x00 前言
文中工具皆可关注 皓月当空w 公众号 发送关键字 工具 获取
0x01 类
只要会java,这个类的概念小问题。
1.类的创建
class Person{
}
2.类的实例化
const p1 = new Person()
3.构造方法
class Person{
constructor(name,age){
this.name=name
this.age=age
}
}
4.一般方法
speak(){
console.log(`${this.name},${this.age}`)
}
5.继承
class Student extends Person{
constructor(name,age,grade){
super(name,age)
this.grade=grade
}
}
0x03 other
欢迎大家关注我朋友的公众号 皓月当空w 分享漏洞情报以及各种学习资源,技能树,面试题等。
以上