-
-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d37d855
commit d38f511
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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){ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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){ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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){ | ||
|