1.JS里怎么输出,console.log还是document.write

onload = function () {
console.log("123");
document.write("abc");
}这两种都可以,但好像都要放到onload里面。

2.onclick绑定两个事件,标签里用onclick="func(1);func(2)"? 还是用addEventListener()?

相关文章:

  • 2022-01-04
  • 2022-12-23
  • 2021-06-01
  • 2022-12-23
  • 2021-12-21
  • 2022-01-13
  • 2021-10-06
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2021-08-02
  • 2022-12-23
  • 2022-01-16
  • 2021-10-24
  • 2022-12-23
相关资源
相似解决方案