text.d.ts 310 B

123456
  1. /** 获取字符串长度 */
  2. export declare function strLen(str: string): number;
  3. /** 是否属于ASCII编码范畴 */
  4. export declare function charAtLength(str: string, i: number): 1 | 2;
  5. /** 文本省略 */
  6. export declare function ellipsisString(str: string, reseveLength: number, position?: string): string;