From 7d8d091bed82de230bb1a1eeccbd3bd000c4b6ee Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Tue, 19 May 2015 02:20:44 +0800 Subject: [PATCH] add npm installation instractions. --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b7258e6..d7900e4 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,11 @@ ### bower Run `bower info hotkeysjs` to list the available versions. -安装 `bower install hotkeysjs` +下载 `bower install hotkeysjs` + +### npm + +下载 `npm install hotkeys-js` ## 定义快捷键 @@ -65,5 +69,8 @@ k('a', function() { }); hotkeys() -// -->Uncaught TypeError: hotkeys is not a function(anonymous function) @ VM2170:2InjectedScript._evaluateOn @ VM2165:883InjectedScript._evaluateAndWrap @ VM2165:816InjectedScript.evaluate @ VM2165:682 +// -->Uncaught TypeError: hotkeys is not a function(anonymous function) +// @ VM2170:2InjectedScript._evaluateOn +// @ VM2165:883InjectedScript._evaluateAndWrap +// @ VM2165:816InjectedScript.evaluate @ VM2165:682 ```