keymaster.js的使用(前端鍵盤快捷鍵)

1>像往常同樣,引入keymaster.js文件到你的項目中。 2>web 定義快捷鍵svg key('a', function(){ alert('you pressed a!') }); // returning false stops the event and prevents default browser events key('ctrl+r', function(){ alert('
相關文章
相關標籤/搜索