标签:develop 描述 val log asc highlight else ref key
let key = ‘‘; if (e.key) { // onKeyDown,对应的e.key = ‘ArrowDown ArrowUp Enter’等 key = e.key; } else { let code = e.which || e.keyCode; key = String.fromCharCode(code); }
标签:develop 描述 val log asc highlight else ref key
原文地址:http://www.cnblogs.com/Candybunny/p/7086728.html