标签:http ar io sp for java on bs cti
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<form action="http://www.sibu.cn" method="get">
<input type="text" id="txt">
<input type="password">
<input type="submit">
</form>
<script type="text/javascript" src="http://img.sibu.cn/font/js/newjs/jquery-1.11.1.min.js"></script>
<script>
$("#txt").on("keydown",function(e){
var e=e||window.event;
if(e.which===13){
event.preventDefault?event.preventDefault():event.returnValue=false;
}
});
</script>
</body>
</html>
标签:http ar io sp for java on bs cti
原文地址:http://www.cnblogs.com/raoyunxiao/p/4173231.html