Skip to content

Commit

Permalink
新增主页地址
Browse files Browse the repository at this point in the history
  • Loading branch information
qq861366490 committed Nov 21, 2019
1 parent b62b5d1 commit 89e7310
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@

- 前端学习交流QQ群,651601340,可以进来提pdfh5.js的bug、问题、建议等。

- [pdfh5博客主页](https://www.gjtool.cn/)

- [pdfh5项目GitHub地址](https://github.com/gjTool/pdfh5)

- [pdfh5打包下载](https://www.gjtool.cn/download/pdfh5.zip)



![pdfh5.js示例](https://img-blog.csdnimg.cn/20190731133403792.gif)

## 更新信息
Expand Down Expand Up @@ -219,7 +223,7 @@ pdfh5.on("ready", function () {
## 打赏榜单
- [JayLin](https://github.com/110117ab) ¥6.66
- [靓仔城](https://github.com/ljc7877376) ¥6.67

- 南蓝 ¥8.80

## 扫码加入QQ群和更多小伙伴一起交流前端技术:
![QQ群:651601340](https://www.gjtool.cn/download/qq.png)
Expand Down
8 changes: 4 additions & 4 deletions pdf.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@
<script src="js/pdfh5.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$(function () {
$("#app").remove()
$("#demo").show()
// $("#app").remove()
// $("#demo").show()
//当前默认优先获取浏览器地址栏?file=后面的地址,如果地址栏没有,再拿配置项的pdfurl或者data来渲染pdf
//优先顺序: ?file= > pdfurl > data
var pdfh5 = new Pdfh5('#demo', {
pdfurl: "https://www.gjtool.cn/pdfh5/git.pdf",
pdfurl: "https://yxq.linksign.cn/api/v1.0/file/downSignFile?fileCode=15729209200281073563943",
// pdfurl: "testPDF/1.pdf",
// renderType:"canvas",
renderType:"canvas",
// type:"ajax",
lazy: true
});
Expand Down

0 comments on commit 89e7310

Please sign in to comment.