<div id="hour" style="display: none">2</div>
JavaScript code:
<script type="text/javascript">
var _h = document.getElementById('hour').value
alert(_h);
</script>
Chrome returns undefined
. What is the problem?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…