var btn1Obj = document.getElementById("btn1");举例:btn1Obj.onclick = method1;btn1Obj.onclick = method2;btn1Obj.onclick = method3;如果这样写,最终将会只有medhot3被执行使用attachEvent添加事件,如: attachEvent('onload'......|attachEvent("onclick".....写成这样:btn1Obj.attachEvent("onclick",meth Read More
http://localhost/getDomainData.html<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <meta http-equiv="Content-Type" content=&qu Read More