Skip to content

Commit

Permalink
Update document.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 10, 2018
1 parent d37d855 commit d38f511
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ hotkeys('f5', function(event, handler){
});
```

或者在您的HTML中手动下载并引入** hotkeys.js **
或者在您的HTML中手动下载并引入** hotkeys.js **,你也可以通过 [UNPKG](https://unpkg.com/[email protected]/dist/) 进行下载

```html
<script type="text/javascript" src="hotkeys.js"></script>
<script src="https://unpkg.com/hotkeys[email protected]/dist/hotkeys.min.js"></script>
<script type="text/javascript">
hotkeys('ctrl+a,ctrl+b,r,f', function(event,handler) {
switch(handler.key){
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ hotkeys('f5', function(event, handler){
});
```

Or manually download and link **hotkeys.js** in your HTML:
Or manually download and link **hotkeys.js** in your HTML, It can also be downloaded via [UNPKG](https://unpkg.com/[email protected]/dist/):

```html
<script type="text/javascript" src="hotkeys.js"></script>
<script src="https://unpkg.com/hotkeys[email protected]/dist/hotkeys.min.js"></script>
<script type="text/javascript">
hotkeys('ctrl+a,ctrl+b,r,f', function(event,handler) {
switch(handler.key){
Expand Down
4 changes: 2 additions & 2 deletions website/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ hotkeys('f5', function(event, handler){
});
```

Or manually download and link **hotkeys.js** in your HTML:
Or manually download and link **hotkeys.js** in your HTML, It can also be downloaded via [UNPKG](https://unpkg.com/[email protected]/dist/):

```html
<script type="text/javascript" src="hotkeys.js"></script>
<script src="https://unpkg.com/hotkeys[email protected]/dist/hotkeys.min.js"></script>
<script type="text/javascript">
hotkeys('ctrl+a,ctrl+b,r,f', function(event,handler) {
switch(handler.key){
Expand Down

0 comments on commit d38f511

Please sign in to comment.