📅  最后修改于: 2022-03-11 14:53:28.839000             🧑  作者: Mango
function log(msg) {
var logElem = document.querySelector(".log");
var time = new Date();
var timeStr = time.toLocaleTimeString();
logElem.innerHTML += timeStr + ": " + msg + "
";
}
log("Logging mouse events inside this container...");