32

有人可以解释一下以下两种在javascript中指定onload回调函数的方法有什么区别吗?

element.onload = callback

element.addEventListener("load",callbak,false)
4

0 回答 0