<script type="text/javascript">
function huoqu(){
var G=document.getElementById(‘value‘).value;
alert(G);
}
</script>
<body>
<div class="containter">
<div class="row">
<div class="md-col-12">
<input type="text" id="value" placeholder="要获取的输入的值"/>
<input type="button" value="打印" onclick="huoqu()"/>
</div>
</div>
</div>
</body>
本文出自 “12212886” 博客,请务必保留此出处http://12222886.blog.51cto.com/12212886/1894768
原文地址:http://12222886.blog.51cto.com/12212886/1894768