function showPic(whichpic){
var source=whichpic.getAttribute("href");
var placeholder=document.getElementById("placeholder");
placeholder.setAttribute("src",source);
}
function count()
{
var body=document.getElementByTagName("body")[0];
alert(body.childNodes.length);
alert("hi");
}
window.onload=count;用ie9,firefox。safari都不行,代码错了吗??
var source=whichpic.getAttribute("href");
var placeholder=document.getElementById("placeholder");
placeholder.setAttribute("src",source);
}
function count()
{
var body=document.getElementByTagName("body")[0];
alert(body.childNodes.length);
alert("hi");
}
window.onload=count;用ie9,firefox。safari都不行,代码错了吗??
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货