From 13dc82b001dfa0fec53f62f1d49f8fd9f49ca556 Mon Sep 17 00:00:00 2001 From: YuJian Date: Mon, 27 Jun 2022 10:49:59 +0800 Subject: [PATCH] vault backup: 2022-06-27 10:49:59 --- Antd 的深入尝试/Button.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Antd 的深入尝试/Button.md diff --git a/Antd 的深入尝试/Button.md b/Antd 的深入尝试/Button.md new file mode 100644 index 0000000..783cc97 --- /dev/null +++ b/Antd 的深入尝试/Button.md @@ -0,0 +1,7 @@ +关于 bind 的用法: + +```typescript +const rxTwoCNChar = /^[\u4e00-\u9fa5]{2}$/; +const isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar); +isTwoCNChar("提交") +``` \ No newline at end of file