<!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>
javascript 通过document.getElementByid.().value获取前台HTML数据
阅读 35
2022-11-18
<!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>
相关推荐
精彩评论(0)