0
点赞
收藏
分享

微信扫一扫

javascript 通过document.getElementByid.().value获取前台HTML数据

49路末班车 2022-11-18 阅读 35


<!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数据_html


举报

相关推荐

0 条评论