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

Update README.md

上级 bd83c77a
...@@ -49,12 +49,13 @@ new MdEditor({ ...@@ -49,12 +49,13 @@ new MdEditor({
}) })
``` ```
#onUpload # onUpload
```js ```js
new MdEditor({ new MdEditor({
..., ...,
onUpload: function(file, callback) { onUpload: function(file, callback) {
// do something with file
// ajax // ajax
// ... // ...
// 得到图片的url // 得到图片的url
...@@ -62,3 +63,5 @@ new MdEditor({ ...@@ -62,3 +63,5 @@ new MdEditor({
} }
}) })
``` ```
# License
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册