diff --git a/code/ts/后端辅助工具/src/DataType/Class.ts b/code/ts/后端辅助工具/src/DataType/Class.ts index 3b5d78d..d76c054 100644 --- a/code/ts/后端辅助工具/src/DataType/Class.ts +++ b/code/ts/后端辅助工具/src/DataType/Class.ts @@ -37,4 +37,14 @@ class CpicximStuff } }; -export { CpicximStuff }; \ No newline at end of file +class A +{ + public static _x: string = "A"; +} + +class B extends A +{ + +} + +export { CpicximStuff, A, B }; \ No newline at end of file diff --git a/code/ts/后端辅助工具/src/main.ts b/code/ts/后端辅助工具/src/main.ts index 2d1c476..f266ebd 100644 --- a/code/ts/后端辅助工具/src/main.ts +++ b/code/ts/后端辅助工具/src/main.ts @@ -2,7 +2,7 @@ * @Author: Kane * @Date: 2023-02-09 22:14:30 * @LastEditors: Kane - * @LastEditTime: 2023-02-14 22:36:54 + * @LastEditTime: 2023-02-20 00:19:23 * @FilePath: /后端辅助工具/src/main.ts * @Description: * @@ -11,11 +11,22 @@ import dataTypes from "./DataType/DataType"; import { pakoTest } from "./gzip/PakoTest"; +import {A,B} from "./DataType/Class"; const greetings = "hello, this is kane's typescript!"; console.log(greetings); 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(); pakoTest();