SOURCE

function writeDocument(variable) {
    document.write(variable + "<br/>");
}

writeDocument("定义时间对象-----")
var oToday = new Date();

writeDocument("获取年月日时分秒----")
writeDocument("年");
writeDocument();
writeDocument();
writeDocument();
writeDocument();
writeDocument();
writeDocument();
console 命令行工具 X clear

                    
>
console