...
This commit is contained in:
26
code/ts/后端辅助工具/src/DataType/Function.ts
Normal file
26
code/ts/后端辅助工具/src/DataType/Function.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* @Author: Kane
|
||||
* @Date: 2023-02-13 23:08:34
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-02-13 23:56:11
|
||||
* @FilePath: /后端辅助工具/src/DataType/Function.ts
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
*/
|
||||
function f(x: number, y: number): number
|
||||
{
|
||||
return x + y;
|
||||
}
|
||||
|
||||
f.version = "1.0.0";
|
||||
|
||||
const func: {
|
||||
(x: number, y: number): void,
|
||||
version: string,
|
||||
} = f;
|
||||
|
||||
function func_this(this: { name: string; }, x: number, y: number): void
|
||||
{
|
||||
|
||||
}
|
@@ -2,10 +2,10 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2023-02-13 15:46:17
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-02-13 15:46:17
|
||||
* @FilePath: /后端辅助工具/src/axios/AxiosTest.js
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
* @LastEditTime: 2023-02-13 23:34:55
|
||||
* @FilePath: /后端辅助工具/src/axios/AxiosTest.ts
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
*/
|
||||
import axios from "axios";
|
@@ -2,18 +2,18 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2023-02-13 15:53:45
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-02-13 15:56:26
|
||||
* @LastEditTime: 2023-02-13 22:41:50
|
||||
* @FilePath: /后端辅助工具/src/axios/request.ts
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
*/
|
||||
import axios, { AxiosInstance } from "axios";
|
||||
import axios, {AxiosInstance, AxiosRequestConfig, AxiosResponse} from 'axios';
|
||||
|
||||
const service = axios.create({
|
||||
baseURL: "",
|
||||
timeout: 10000,
|
||||
timeoutErrorMessage: "请求超时!",
|
||||
});
|
||||
// const service = axios.create({
|
||||
// baseURL: "",
|
||||
// timeout: 10000,
|
||||
// timeoutErrorMessage: "请求超时!",
|
||||
// });
|
||||
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2023-02-09 22:14:30
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-02-13 15:59:43
|
||||
* @LastEditTime: 2023-02-14 00:09:39
|
||||
* @FilePath: /后端辅助工具/src/main.ts
|
||||
* @Description:
|
||||
*
|
||||
|
Reference in New Issue
Block a user