- 浏览: 279356 次
- 性别:
- 来自: 东方水城
文章分类
最新评论
-
18335864773:
pageoffice 插件 可以实现 office文档的在线操 ...
Java调用com组件操作word -
coosummer:
推荐使用在线免费bug管理系统- bug 禅思:http:// ...
Bug管理工具 -
program_coco:
柠檬bug管理系统,一个在线的bug管理系统。www.lemo ...
Bug管理工具 -
影非弦:
这个in.read(data);//data是一个byte[] ...
Java串口通信总结 -
影非弦:
这个不详细啊,我弄了一天了,都没弄出来,总是出错,读信息的时候 ...
Java串口通信总结
event.keycode值大全,方便自己和大家以后查阅:
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 keycod e 116 = F5
85
86
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
<!----> 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 keycod e 116 = F5
85
86
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
发表评论
-
Highcharts使用指南
2013-08-29 10:49 1362摘要 Highcharts图表控件是目前使用最为广泛的图 ... -
JS多级联动
2010-11-22 10:02 1236<!DOCTYPE HTML PUBLIC " ... -
window.open()代替window.showModalDialog()问题
2009-11-25 10:15 2671最近在做一个项目,需要用到弹出一个子窗口(sub. ... -
JavaScript EE:在服务器端运行JavaScript文件
2009-01-15 16:13 1411本系列文章围绕的主旨是了解如何在 Ajax 和 ... -
悟透JavaScript(结)
2008-12-18 11:09 864原型扩展 想必 ... -
悟透JavaScript(续)
2008-12-18 11:07 899构造对象 好了,接下我们来讨论一下对象的另一种创 ... -
悟透JavaScript
2008-12-18 11:06 846引子 编程世界里只存在两种基本元素,一个是数 ... -
你不知道的 JavaScript - “this”
2008-12-18 11:03 894JavaScript 里的 this 到底指得是什么?很多 ... -
JS日期操作
2008-12-18 10:17 1557时间对象是一个我们经常要用到的对象,无论是做时间输出、时间判断 ... -
可输入的select下拉框
2008-12-17 17:32 10731当select下拉框中没有要选择的信息项时,可以直 ... -
document.createElement("input")动态创建html元素时checkbox
2008-12-17 17:27 3872最近研究createElement的时候发现一个奇怪的问题 ... -
Js对中文字符串加密
2008-12-17 14:00 2253function urlencode(text) { ... -
JavaScript的document和window对象详解
2008-12-17 13:53 1283[document对象 ] 该对 ... -
简单js分页效果
2008-12-17 13:41 2742写了这个js让我彻底喜欢上全局变量,在这个例子中所有的内容都是 ... -
JS实现图片切割效果(带拖放、缩放效果)
2008-12-16 14:40 3124<!DOCTYPE html PUBLIC " ... -
JS + DIV ===> 精美alert提示框
2008-12-16 14:32 5397如果*.js出现乱码现象,可以把该*.js文件用记事本打开,然 ...
相关推荐
### Window.event.keycode值大全详解 #### 概述 在JavaScript中,`window.event.keycode`属性被用于获取用户按下键的键盘码。这在处理键盘事件时非常有用,可以帮助开发者识别并响应特定的按键操作。本文将详细...
js_event.keycode值大全,匹配准确,快速开发查阅
列举了所有keyCode的值,方便开发者利用。
了解`event.keyCode`大全,意味着你需要熟悉不同按键对应的键码值。这包括字母、数字、标点符号以及功能键等。例如,`A-Z`的键码值范围是从65到90(不区分大小写),`0-9`的键码值范围是从48到57,`F1-F12`的键码值...
(event.keyCode==46)&&!(event.keyCode==8)&&!(event.keyCode==37)&&!(event.keyCode==39)&&!(event.keyCode==190)) if(!((event.keyCode>=48&&event.keyCode<=57)||(event.keyCode>=96&&event.keyCode<=105))...
### JavaScript Event.keyCode 值详解 #### 概述 在JavaScript中,`event.keyCode` 是一个用于捕获键盘事件时的属性,它返回一个整数值,代表触发该事件的键对应的ASCII码或虚拟键码(Virtual Key Code)。本文将...
### JavaScript中的Event.keyCode键值详解 在JavaScript编程中,`event.keyCode`是一个非常有用的属性,它可以帮助开发者捕获用户在页面上的键盘输入行为,并通过不同的键值来区分各种按键。本文将详细介绍`event....
if (event.keyCode == 13) { // 回车键的keyCode值为13 alert("回车键被按下了!"); } }; ``` 在这个例子中,当用户在页面上按下回车键时,就会弹出一个提示框显示“回车键被按下了!”。这种方式可以用来处理...
网上收集的KeyCode值方便大家查找: keycode 8 = BackSpace BackSpace keycode 9 = Tab Tab keycode 12 = Clear keycode 13 = Enter keycode 16 = Shift_L keycode 17 = Control_L keycode 18 = Alt_L keycode 19 = ...
var keyCode = event.keyCode; // 在这里根据keyCode进行判断和处理 console.log('Keycode:', keyCode); }); ``` 四、控制按钮与`keycode` 有时候,我们可能希望用户按下特定键时触发服务器端的事件,比如提交...
`event.keyCode` 的值是整数,对应于键盘上每个键的一个特定编号。 下面是一些常见的`event.keyCode`值: - `keycode 8`: 这个键码代表Backspace键,用于删除前一个字符。 - `keycode 9`: Tab键,用于在表单元素...
`event.keyCode`的值通常是一个整数,对应不同的键盘按键。例如: - `keycode 8` 对应退格键(BackSpace) - `keycode 9` 对应Tab键(Tab) - `keycode 13` 对应回车键(Enter) - `keycode 16` 对应Shift键(Shift_L) - `...
### 键盘Keycode值与JavaScript触发事件 在前端开发中,经常需要处理用户的键盘输入事件,例如表单验证、快捷键操作等场景。在JavaScript中,可以通过监听`keydown`、`keyup`或`keypress`事件来获取用户按下的按键...
请注意,在实际代码中,我们通常使用`event.keyCode`来获取keycode值。例如,下面是一个简单的JavaScript代码示例,展示了如何使用keycode来检测按键事件: ```javascript document.onkeypress = function(event) {...