javascript 通过document.getElementByid.().value获取前台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>
还没有评论,来说两句吧...