记录常用方法

index.d.ts 931B

1234567891011121314151617181920212223
  1. export interface diffTimeDate {
  2. years: number
  3. days: number
  4. hours: number
  5. min: number
  6. sec: number
  7. millisec: number
  8. }
  9. declare function MathRand(len: number): number {}
  10. declare function MathRandom(range: number): number {}
  11. declare function Base64(data: any): string {}
  12. declare function MD5(data: any): string {}
  13. declare function DESencrypt(data: any, key: any): strng {}
  14. declare function DESdecrypt(data: any, key: any): strng {}
  15. declare function debounce(fn: Function, wait: number): void {}
  16. declare function throttle(fn: Function, wait: number): void {}
  17. declare function keepTwoDecimal(num: number): number {}
  18. declare function keepTwoDecimalFull(num: number): number {}
  19. declare function showSaleNumText(num: number): string {}
  20. declare function ScanSensitiveWords(content: string): string {}
  21. declare function getDiffTime(endDate: Date): diffTimeDate {}
  22. declare function RandomColor(): string {} // rgb(0,0,0)