保存进度!
This commit is contained in:
parent
8902b2761b
commit
f354d141f5
@ -37,4 +37,14 @@ class CpicximStuff
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export { CpicximStuff };
|
class A
|
||||||
|
{
|
||||||
|
public static _x: string = "A";
|
||||||
|
}
|
||||||
|
|
||||||
|
class B extends A
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
export { CpicximStuff, A, B };
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: Kane
|
* @Author: Kane
|
||||||
* @Date: 2023-02-09 22:14:30
|
* @Date: 2023-02-09 22:14:30
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-02-14 22:36:54
|
* @LastEditTime: 2023-02-20 00:19:23
|
||||||
* @FilePath: /后端辅助工具/src/main.ts
|
* @FilePath: /后端辅助工具/src/main.ts
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
@ -11,11 +11,22 @@
|
|||||||
|
|
||||||
import dataTypes from "./DataType/DataType";
|
import dataTypes from "./DataType/DataType";
|
||||||
import { pakoTest } from "./gzip/PakoTest";
|
import { pakoTest } from "./gzip/PakoTest";
|
||||||
|
import {A,B} from "./DataType/Class";
|
||||||
|
|
||||||
const greetings = "hello, this is kane's typescript!";
|
const greetings = "hello, this is kane's typescript!";
|
||||||
|
|
||||||
console.log(greetings);
|
console.log(greetings);
|
||||||
console.log("all");
|
console.log("all");
|
||||||
|
|
||||||
|
const _a:A = new A();
|
||||||
|
const _b:B = new B();
|
||||||
|
|
||||||
|
B._x = "B";
|
||||||
|
|
||||||
|
console.log(A._x);
|
||||||
|
console.log(B._x);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//dataTypes();
|
//dataTypes();
|
||||||
pakoTest();
|
pakoTest();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user