javascript当中绑定事件和方法
8.绑定事件和方法
马克-to-win:once, long time to know that "script" must be put in behind, while "input" must be put in front,
otherwise document.getElementById("button1"); can not find the "button1",alert("button1 is "+ button1); 结果就是null,为什么这次跟往常我们的印象不一样了呢?因为往常我们先写一段script,之后在body中写上诸如
例 8.1(commonEventPrerequisiteIEFF.html)
更多内容请见原文,文章转载自:https://blog.csdn.net/qq_43650923/article/details/102210095