$(document).keydown(function(event) {
if (event.keyCode == 13) {
$(‘form’).each(function() {
//你的要运行的代码
});
}
});
但是在opera中还是不行,技穷,一气之下把回车事件给屏蔽了
<form id=”Form1″ runat=”server” onsubmit=”return false;”>
可能这样做对有些功能不好。不过只是希望对有些人有些帮助。
$(document).keydown(function(event) {
if (event.keyCode == 13) {
$(‘form’).each(function() {
//你的要运行的代码
});
}
});
但是在opera中还是不行,技穷,一气之下把回车事件给屏蔽了
<form id=”Form1″ runat=”server” onsubmit=”return false;”>
可能这样做对有些功能不好。不过只是希望对有些人有些帮助。

2023-03-10
0万阅读

2023-02-27
0万阅读

2023-02-23
6万阅读

2023-02-22
6万阅读

2023-02-12
8万阅读

2023-02-12
3万阅读

2023-01-19
8万阅读

2023-01-17
4万阅读

2023-01-17
4万阅读

2023-01-17
2万阅读

2023-03-10
0万阅读

2023-02-27
0万阅读

2023-02-23
6万阅读

2023-02-22
6万阅读

2023-02-12
8万阅读

2023-02-12
3万阅读

2023-01-19
8万阅读

2023-01-17
4万阅读

2023-01-17
4万阅读

2023-01-17
2万阅读