Update document.

pull/30/head
jaywcjlove 7 years ago
parent d37d855842
commit d38f511fdc

@ -38,10 +38,10 @@ hotkeys('f5', function(event, handler){
});
```
或者在您的HTML中手动下载并引入** hotkeys.js **
或者在您的HTML中手动下载并引入** hotkeys.js **,你也可以通过 [UNPKG](https://unpkg.com/hotkeys-js@3.2.0/dist/) 进行下载
```html
<script type="text/javascript" src="hotkeys.js"></script>
<script src="https://unpkg.com/hotkeys-js@3.2.0/dist/hotkeys.min.js"></script>
<script type="text/javascript">
hotkeys('ctrl+a,ctrl+b,r,f', function(event,handler) {
switch(handler.key){

@ -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/hotkeys-js@3.2.0/dist/):
```html
<script type="text/javascript" src="hotkeys.js"></script>
<script src="https://unpkg.com/hotkeys-js@3.2.0/dist/hotkeys.min.js"></script>
<script type="text/javascript">
hotkeys('ctrl+a,ctrl+b,r,f', function(event,handler) {
switch(handler.key){

@ -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/hotkeys-js@3.2.0/dist/):
```html
<script type="text/javascript" src="hotkeys.js"></script>
<script src="https://unpkg.com/hotkeys-js@3.2.0/dist/hotkeys.min.js"></script>
<script type="text/javascript">
hotkeys('ctrl+a,ctrl+b,r,f', function(event,handler) {
switch(handler.key){

Loading…
Cancel
Save