diff --git a/docs/pages/object/removeKey.md b/docs/pages/object/removeKey.md index 757ef16..78563a0 100644 --- a/docs/pages/object/removeKey.md +++ b/docs/pages/object/removeKey.md @@ -9,7 +9,7 @@ 传入一个对象和属性名,返回删除属性后的对象。 ```ts -import { numberSeparate } from '@renzp/utils' +import { removeKey } from '@renzp/utils' const a = { a: 1, b: 2 }; const c = removeKey(a, "a"); // c = { b: 2 } a = { a: 1, b: 2 } diff --git a/docs/pages/window/copyText.md b/docs/pages/window/copyText.md index 6b673ae..38b3947 100644 --- a/docs/pages/window/copyText.md +++ b/docs/pages/window/copyText.md @@ -11,9 +11,9 @@ ```ts import { copyText } from '@renzp/utils' - * const status = await copyText('复制文本'); // true - * const text = await navigator.clipboard.readText() - * console.log(text); // 复制文本 +const status = await copyText('复制文本'); // true +const text = await navigator.clipboard.readText() +console.log(text); // 复制文本 ``` ## 参数 @@ -25,6 +25,6 @@ import { copyText } from '@renzp/utils' ## 返回 -| 参数 | 说明 | 类型 | -| ---- | -------------- | ----------------- | -| v | 复制操作的状态 | `Promise` |