From b3c7e2978e4cfdcd7be25aeb02d75f526e8147fc Mon Sep 17 00:00:00 2001 From: layyback <505187749@qq.com> Date: Fri, 8 Jul 2022 15:07:47 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=B7=BB=E5=8A=A0es=20module?= =?UTF-8?q?=E5=BC=95=E7=94=A8=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index de40d0c..b7c3223 100644 --- a/README.md +++ b/README.md @@ -111,10 +111,16 @@ # 使用 -1. 通过script标签引入 +1. 引入编辑器 + +- 通过script标签引入 ```html ``` +- 通过es module引入 +```js +import MdEditor from './markdown-editor.js' +``` 2. 指定需要渲染的容器 ```html
-- GitLab