保存进度!
This commit is contained in:
@@ -1,36 +1,19 @@
|
||||
/*
|
||||
* @Author: Kane
|
||||
* @Date: 2023-02-09 22:14:30
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-02-12 23:52:33
|
||||
* @FilePath: /后端辅助工具/src/main.ts
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
*/
|
||||
|
||||
const greetings = "Hello, World!";
|
||||
import { dataTypes } from "./DataType/DataType";
|
||||
|
||||
// console.log( greetings );
|
||||
const greetings = "hello, this is kane's typescript!";
|
||||
|
||||
enum Season
|
||||
{
|
||||
spring = 1,
|
||||
summer,
|
||||
autumn,
|
||||
winter,
|
||||
};
|
||||
|
||||
const ar: string[] = [
|
||||
"1", "2",
|
||||
];
|
||||
|
||||
const ar2: (string | number)[] = [
|
||||
1, 2, 3, "4",
|
||||
];
|
||||
|
||||
const ar3: readonly (string | number)[] = [1, 2, 3, 4, 5, "7",];
|
||||
|
||||
const today = Season.spring;
|
||||
|
||||
function ts(): string
|
||||
{
|
||||
const message = "message";
|
||||
|
||||
return message;
|
||||
}
|
||||
|
||||
ts();
|
||||
|
||||
console.log(today);
|
||||
console.log(greetings);
|
||||
console.log("all");
|
||||
|
||||
dataTypes();
|
||||
|
Reference in New Issue
Block a user