DevTool/JavaScript
해당월의 일수 - -
말없제이
2012. 5. 24. 10:32
년도 구하고 윤달구해야 한다고 복잡하게 생각했는데.. 그냥 0일로 넣으면 월의 마지막날이 나옴 - -
<script>
alert(new Date('2012','03','0').getDate());
alert(new Date('2012','02','0'));
</script>
<html>
<head></head>
<body>
<input type="text"
<input id="txtNo" type="password" style="display:none;" />
<script>
alert(document.getElementById("txtNo").value);
</script>
</body>
</html>