时间:2021-07-01 10:21:17 帮助过:3人阅读
<!DOCTYPE html>
<html>
<head>
<meta charset=" utf-8">
<title>pwd不能复制粘贴</title>
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(function(){
$("input:password").bind("copy cut paste",function(e){
return false;
})
})
</script>
</head>
<body>
<p>输入密码: <input type="password"/></p>
<p>再次输入密码: <input type="password"/></p>
</body>
</html>