Skip to content

Commit

Permalink
modified README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gongph committed Mar 12, 2017
1 parent 0ec74fc commit 962631d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ Very cool jquery plugin - [html2dodcx.min.js](https://github.com/gongph/html2doc

目前仅支持在 Browser globals 中使用。通过 `window.savaAsDocx(opts)` 方法导出文件。例如,像下面的代码:
```html
<body>
<div id="example-1">
<p>this is a test data !</p>
<p>中文测试。哈喽,html2docx.js!</p>
</div>
<button id="example-btn-1">Example1</button><br/>

<script src="./dist/html2docx.min.js"></script>
<script type="text/javascript">
// Test
Expand All @@ -16,6 +23,7 @@ Very cool jquery plugin - [html2dodcx.min.js](https://github.com/gongph/html2doc
})
})
</script>
</body>
```
## Options(参数)

Expand Down

0 comments on commit 962631d

Please sign in to comment.