From bfeb47624cfe1dcaaabc26d3b66b6136ec410481 Mon Sep 17 00:00:00 2001 From: Donal Date: Sat, 30 Dec 2023 18:59:33 +0800 Subject: [PATCH] Update README.md --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4abd840..0a8ea46 100644 --- a/README.md +++ b/README.md @@ -44,9 +44,8 @@ parseOfdDocument({ | width | 预期渲染的宽度,像素值 ,如800 | 否 | ``` -renderOfd(documentIndex, width).then(divs=>{ - // do something -}) +const divs = renderOfd(documentIndex, width) +// do something ``` #### 渲染OFD对应文档的对应页 @@ -59,9 +58,9 @@ renderOfd(documentIndex, width).then(divs=>{ | width | 预期渲染的宽度,像素值 ,如800 | 否 | ``` -renderOfdByIndex(documentIndex, pageIndex, width).then(div => { - // do something -}}) +const div = renderOfdByIndex(documentIndex, pageIndex, width) +// do something + ``` ## ofd推荐项目