提交 b3c7e297 编写于 作者: 璃白.'s avatar 璃白. 🌻

添加es module引用方式

上级 da55a19a
......@@ -111,10 +111,16 @@
# 使用
1. 通过script标签引入
1. 引入编辑器
- 通过script标签引入
```html
<script src="./markdown-editor.js"></script>
```
- 通过es module引入
```js
import MdEditor from './markdown-editor.js'
```
2. 指定需要渲染的容器
```html
<div id="app"></div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册