From 03e4ae656951ca6caf0ecbb2a4fcbacfb4217b23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9A=AE=E5=B0=98?= Date: Tue, 9 Jul 2019 20:31:21 +0800 Subject: [PATCH] docs: mod require doc --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 771ac46..ca448a4 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,9 @@ #### 初始化 ```javascript -const Client = require('@alifd/fusion-site-sdk'); +import Client from '@alifd/fusion-site-sdk'; +// 或 +const Client = require('@alifd/fusion-site-sdk').default; // 使用token 初始化token const client = new Client('your token');