优化 代码

This commit is contained in:
xiu2
2021-05-22 09:53:18 +08:00
parent b373c1daa6
commit 13209b27a6
+1 -1
View File
@@ -397,7 +397,7 @@
// 输入密码后回车确认
function enterToPass() {
document.getElementById('pwd').onkeydown = function(e){
if(e.keyCode == 13){
if(e.key === 'Enter'){
document.getElementById('sub').click();
}
};