event.keycode值大全
1 keycode 8 = BackSpace BackSpace
2 keycode 9 = Tab Tab
3 keycode 12 = Clear
4 keycode 13 = Enter
5 keycode 16 = Shift_L
6 keycode 17 = Control_L
7 keycode 18 = Alt_L
8 keycode 19 = Pause
9 keycode 20 = Caps_Lock
10 keycode 27 = Escape Escape
11 keycode 32 = space space
12 keycode 33 = Prior
13 keycode 34 = Next
14 keycode 35 = End
15 keycode 36 = Home
16 keycode 37 = Left
17 keycode 38 = Up
18 keycode 39 = Right
19 keycode 40 = Down
20 keycode 41 = Select
21 keycode 42 = Print
22 keycode 43 = Execute
23 keycode 45 = Insert
24 keycode 46 = Delete
25 keycode 47 = Help
26 keycode 48 = 0 equal braceright
27 keycode 49 = 1 exclam onesuperior
28 keycode 50 = 2 quotedbl twosuperior
29 keycode 51 = 3 section threesuperior
30 keycode 52 = 4 dollar
31 keycode 53 = 5 percent
32 keycode 54 = 6 ampersand
33 keycode 55 = 7 slash braceleft
34 keycode 56 = 8 parenleft bracketleft
35 keycode 57 = 9 parenright bracketright
36 keycode 65 = a A
37 keycode 66 = b B
38 keycode 67 = c C
39 keycode 68 = d D
40 keycode 69 = e E EuroSign
41 keycode 70 = f F
42
43 keycode 71 = g G
44 keycode 72 = h H
45 keycode 73 = i I
46 keycode 74 = j J
47 keycode 75 = k K
48 keycode 76 = l L
49 keycode 77 = m M mu
50 keycode 78 = n N
51 keycode 79 = o O
52 keycode 80 = p P
53 keycode 81 = q Q at
54 keycode 82 = r R
55 keycode 83 = s S
56 keycode 84 = t T
57 keycode 85 = u U
58 keycode 86 = v V
59 keycode 87 = w W
60 keycode 88 = x X
61 keycode 89 = y Y
62 keycode 90 = z Z
63 keycode 96 = KP_0 KP_0
64 keycode 97 = KP_1 KP_1
65 keycode 98 = KP_2 KP_2
66 keycode 99 = KP_3 KP_3
67 keycode 100 = KP_4 KP_4
68 keycode 101 = KP_5 KP_5
69 keycode 102 = KP_6 KP_6
70 keycode 103 = KP_7 KP_7
71 keycode 104 = KP_8 KP_8
72 keycode 105 = KP_9 KP_9
73 keycode 106 = KP_Multiply KP_Multiply
74 keycode 107 = KP_Add KP_Add
75
76 keycode 108 = KP_Separator KP_Separator
77 keycode 109 = KP_Subtract KP_Subtract
78 keycode 110 = KP_Decimal KP_Decimal
79 keycode 111 = KP_Divide KP_Divide
80 keycode 112 = F1
81 keycode 113 = F2
82 keycode 114 = F3
83 keycode 115 = F4
84
85
86 keycode 116 = F5
87 keycode 117 = F6
88 keycode 118 = F7
89 keycode 119 = F8
90 keycode 120 = F9
91 keycode 121 = F10
92 keycode 122 = F11
93 keycode 123 = F12
94 keycode 124 = F13
95 keycode 125 = F14
96 keycode 126 = F15
97 keycode 127 = F16
98 keycode 128 = F17
99 keycode 129 = F18
100 keycode 130 = F19
101 keycode 131 = F20
102 keycode 132 = F21
103 keycode 133 = F22
104 keycode 134 = F23
105 keycode 135 = F24
106 keycode 136 = Num_Lock
107 keycode 137 = Scroll_Lock
108 keycode 187 = acute grave
109 keycode 188 = comma semicolon
110 keycode 189 = minus underscore
111 keycode 190 = period colon
112 keycode 192 = numbersign apostrophe
113 keycode 210 = plusminus hyphen macron
114 keycode 211 =
115 keycode 212 = copyright registered
116 keycode 213 = guillemotleft guillemotright
117 keycode 214 = masculine ordfeminine
118 keycode 215 = ae AE
119 keycode 216 = cent yen
120 keycode 217 = questiondown exclamdown
121 keycode 218 = onequarter onehalf threequarters
122 keycode 220 = less greater bar
123 keycode 221 = plus asterisk asciitilde
124 keycode 227 = multiply division
125
126 keycode 228 = acircumflex Acircumflex
127 keycode 229 = ecircumflex Ecircumflex
128 keycode 230 = icircumflex Icircumflex
129 keycode 231 = ocircumflex Ocircumflex
130 keycode 232 = ucircumflex Ucircumflex
131 keycode 233 = ntilde Ntilde
132 keycode 234 = yacute Yacute
133 keycode 235 = oslash Ooblique
134 keycode 236 = aring Aring
135 keycode 237 = ccedilla Ccedilla
136 keycode 238 = thorn THORN
137 keycode 239 = eth ETH
138 keycode 240 = diaeresis cedilla currency
139 keycode 241 = agrave Agrave atilde Atilde
140 keycode 242 = egrave Egrave
141 keycode 243 = igrave Igrave
142 keycode 244 = ograve Ograve otilde Otilde
143 keycode 245 = ugrave Ugrave
144 keycode 246 = adiaeresis Adiaeresis
145 keycode 247 = ediaeresis Ediaeresis
146 keycode 248 = idiaeresis Idiaeresis
147 keycode 249 = odiaeresis Odiaeresis
148 keycode 250 = udiaeresis Udiaeresis
149 keycode 251 = ssharp question backslash
150 keycode 252 = asciicircum degree
151 keycode 253 = 3 sterling
152 keycode 254 = Mode_switch
153
154 使用event对象的keyCode属性判断输入的键值
155 eg:if(event.keyCode==13)alert(“enter!”);
156 键值对应表
157 A 0X65 U 0X85
158 B 0X66 V 0X86
159 C 0X67 W 0X87
160 D 0X68 X 0X88
161 E 0X69 Y 0X89
162 F 0X70 Z 0X90
163 G 0X71 0 0X48
164 H 0X72 1 0X49
165 I 0X73 2 0X50
166 J 0X74 3 0X51
167 K 0X75 4 0X52
168 L 0X76 5 0X53
169 M 0X77 6 0X54
170 N 0X78 7 0X55
171 O 0X79 8 0X56
172 P 0X80 9 0X57
173 Q 0X81 ESC 0X1B
174 R 0X82 CTRL 0X11
175 S 0X83 SHIFT 0X10
176 T 0X84 ENTER 0XD
177
178
如果要使用组合键,则可以利用event.ctrlKey,event.shiftKey,event .altKey判断是否按下了ctrl键、shift键以及alt
event.keycode值大全的更多相关文章
- window.event.keycode值大全
window.event.keycode值大全 event.keycode值大全 1 keycode 8 = BackSpace BackSpace 2 keycode 9 = Tab Tab 3 k ...
- 键盘对应数字-keycode值大全(转)
event.keycode值大全 keycode 8 = BackSpace BackSpace keycode 9 = Tab Tab keycode 12 = Clear k ...
- JavaScript 键盘event.keyCode值列表大全
JavaScript 键盘event.keyCode值列表大全 event.keyCode值列表大全,对于需要根据键盘按键触发相应事件的朋友需要. 网上收集的KeyCode值方便大家查找: k ...
- js_event.keycode值大全
onkeydown 当用户按下键盘按键时触发onkeypress 当用户按下字面键时触发 onkeyup 当用户释放键盘按键时触发 =============================== ...
- keycode值大全
13 我们只知道13是回车,主要是其他的也不是很常用,所以不用记. keycode 8 = BackSpace BackSpace keycode 9 = Tab Tab keycode 12 ...
- ASP.NET使用window.event.keycode来获取按下的键盘值!
window.event.keycode-获取按下的键盘值 这里只列出了一些较常用的键盘值更加详细的键盘值请访问此人博客:https://www.cnblogs.com/z-sm/p/3597592. ...
- 键盘KeyCode值列表
event.keycode值大全1 keycode 8 = BackSpace BackSpace 2 keycode 9 = Tab Tab 3 keycode 12 = Clear 4 keyco ...
- JS键盘的键码(event.keyCode)
keycode 8 = BackSpace BackSpace keycode 9 = Tab Tab keycode 12 = Clear keycode 13 = Enter keycode 16 ...
- js获取键盘按下的键值event.keyCode,event.charCode,event.which的兼容性
js获取键盘按下的键值有event.keyCode,event.charCode和event.which 其中: 谷歌浏览器对event.keyCode,event.charCode和event.wh ...
随机推荐
- Node.js开发环境搭建
1.安装express npm install express -g 2.express33.6以后把express-generator分离出来了,所以还需安装express-generator,否则 ...
- WinForm中异步加载数据并使用进度条
在WinForm程序中,有时会因为加载大量数据导致UI界面假死,这种情况对于用户来说是非常不友好的.因此,在加载大量数据的情况下,首先应该将数据加载放在另一线程中进行,这样保证了UI界面的响应:其次可 ...
- 使用ajax跨域withCredentials的作用
默认情况下,跨源请求不提供凭据(cookie.HTTP认证及客户端SSL证明等).通过将withCredentials属性设置为true,可以指定某个请求应该发送凭据.如果服务器接收带凭据的请求,会用 ...
- 查询一个ID出现2种结果的情况
项目中书籍分个人和机构,分属不同的表 所以有的时候ID是一样的,那么只根据ID查询书籍就会存在ID=xxx的既有个人又有机构,而通常我们可能只需要一个,多的没做区分就出问题了! 所以数据统一做查询的时 ...
- Kindeditor(JSP)& 上传目录不存在
一.基本配置 Kindeditor是一款富文本编辑器,作用跟博客园写文章用的这个编辑器一样,都是为了让文本加入各种各样的修饰元素. 使用方法如下,解压缩,把期中的ASP\NET\PHP文件夹都删除,然 ...
- 【Lucene实验1】构建索引
一.实验名称:构建索引 二.实验日期:2013/9/21 三.实验目的: 1) 能理解Lucene中的Document-Field结构的数据建模过程: 2) 能编针对特定数 ...
- 备忘:SSRS技巧三则
前言 最近在弄SSRS,发现了三个小技巧.在此记录一下.免得以后忘了. 技巧 1. SSRS输出成EXCEL时,让两个dataset各占一个sheet, 这个简单,在其中一个table的属性加上pag ...
- [C#]exchange发送,收件箱操作类
最近项目中需要用到exchange的操作,就参照msdn弄了一个简单的操作类.目前先实现了,发送邮件和拉取收件箱的功能,其他的以后在慢慢的添加. using Microsoft.Exchange.We ...
- 第二十八课:focusin与focusout,submit,oninput事件的修复
focusin与focusout 这两个事件是IE的私有实现,能冒泡,它代表获得焦点或失去焦点的事件.现在只有Firefox不支持focusin,focusout事件.其实另外两个事件focus和bl ...
- 每天一个linux命令(49):ss命令
ss是Socket Statistics的缩写.顾名思义,ss命令可以用来获取socket统计信息,它可以显示和netstat类似的内容.但ss的优势在于它能够显示更多更详细的有关TCP和连接状态的信 ...