fe
前端周刊1-EsLint和TypeScript的区别
本文探讨了ESLint和TypeScript的区别与协同使用。ESLint是静态分析工具,用于强制执行最佳实践;TypeScript则侧重于类型安全。两者功能互补,在TypeScript项目中推荐结合使用,通过typescript-eslint插件整合配置,以充分发挥各自优势...
2025-02-11
240715Note: Antd select
Read More
1. 如何局部修改 Antd Select组件 placeholder 的颜色 less,在子组件内部写 global 样式 :global {
.ant-select-selection-placeholder {
color: #0088f9;
}...
2024-07-15
240614Note: debounce and throttle function of typescript version
Read More
export function debounce<F extends(...rest: any[]) => void>(
fn: F, delay = 200): (this: ThisType<F>, ...args: Parameters<F>) => void {
let timer:...
2024-06-14
Read More