• 弹窗输出: alert("hello world!")
  • 控制台输出: console.log("hello world!")
  • 直接输出: document.write("hello world!")
  • 输出到html元素: document.getElementById("demoid").innerHTML = "hello world!"
    document.getElementById("demoid").innerText = "hello world! innerText"

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-04-17
  • 2021-12-14
  • 2021-12-25
猜你喜欢
  • 2021-07-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案