Jacklovely

导航

 

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

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

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

posted on 2016-03-31 16:11  Jacklovely  阅读(168)  评论(0)    收藏  举报