js自定义函数调用自定义函数 15
functionload(){alert("test");getheight();}functiongetheight(){alert("test1");varht=do...
function load() {
alert("test");
getheight();
}
function getheight() {
alert("test1");
var ht = document.body.clientHeight;
document.getElementById("main").style.height = ht - 105;
document.getElementById("menu").style.height = ht - 150
}
页面直接调用load() getheight()不执行! 展开
alert("test");
getheight();
}
function getheight() {
alert("test1");
var ht = document.body.clientHeight;
document.getElementById("main").style.height = ht - 105;
document.getElementById("menu").style.height = ht - 150
}
页面直接调用load() getheight()不执行! 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询