Sublime Text
<!DOCTYPE html> <html> <body> <script> var date = new Date(); document.write("Mili giây của thời điểm ban đầu: " + date.getMilliseconds() + "<br>"); date.setMilliseconds(567); document.write("Mili giây sau khi thiết lập lại: " + date.getMilliseconds()); </script> </body> </html>
<!DOCTYPE html> <html> <body> <script> var date = new Date(); document.write("Mili giây của thời điểm ban đầu: " + date.getMilliseconds() + "<br>"); date.setMilliseconds(567); document.write("Mili giây sau khi thiết lập lại: " + date.getMilliseconds()); </script> </body> </html>