setMilliseconds() 예제
<button onclick="homzzang()">클릭</button> <p id="demo"></p> <script> function homzzang() { var d = new Date(); d.setMilliseconds(150); var n = d.getMilliseconds(); document.getElementById("demo").innerHTML = n; } </script> 결과보기
<button onclick="homzzang()">클릭</button>
<p id="demo"></p>
<script>
function homzzang() {
var d = new Date();
d.setMilliseconds(150);
var n = d.getMilliseconds();
document.getElementById("demo").innerHTML = n;
}
</script>
결과보기
결과값: 150