标签:blog os io for ar cti div log
$(document).ready(function(){ document.onkeydown = function (event){ if (event.keyCode==13) //回车键的键值为13 submit(); };});
function submit(){ var password = $("#password").val(); $("#password").val(password); document.forms[0].submit();}
转载-js按回车键实现登陆-myself,布布扣,bubuko.com
转载-js按回车键实现登陆-myself
原文地址:http://www.cnblogs.com/bella-life-blog/p/3904431.html