📜  内部 html 模板 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:28.839000             🧑  作者: Mango

代码示例1
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...");