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
posted @ 2013-01-12 15:03 tinyphp Views(768) Comments(0) Diggs(0) Edit
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
posted @ 2013-01-12 11:31 tinyphp Views(608) Comments(0) Diggs(0) Edit