<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
function leechoy(){
alert(document.getElementById("in").value);
}
</script>
</head>
<body>
<input id = "in" value="" />
<button onclick="leechoy()">点这里</button>
</body>
</html>
微信扫一扫
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
function leechoy(){
alert(document.getElementById("in").value);
}
</script>
</head>
<body>
<input id = "in" value="" />
<button onclick="leechoy()">点这里</button>
</body>
</html>
相关推荐