diff --git a/README-zh.md b/README-zh.md index 7eea62c..8a59010 100644 --- a/README-zh.md +++ b/README-zh.md @@ -28,6 +28,32 @@ $ npm run build # 编译 $ npm run watch # 开发模式 ``` +```js +import hotkeys from 'hotkeys-js'; + +hotkeys('f5', function(event, handler){ + // Prevent the default refresh event under WIDNOWS system + event.preventDefault() + alert('you pressed F5!') +}); +``` + +或者在您的HTML中手动下载并引入** hotkeys.js **: + +```html + + + +