您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

js函数返回多个返回值的示例代码_javascript技巧

2024/6/18 21:32:11发布50次查看
复制代码 代码如下:
var w = getclientsize().width;
var h = getclientsize().height - 97;
复制代码 代码如下:
function getclientsize() {
var a = h = 0;
if (window.innerheight) {
a = window.innerwidth;
h = window.innerheight
} else {
if (document.documentelement && document.documentelement.clientheight) {
a = document.documentelement.clientwidth;
h = document.documentelement.clientheight
} else {
a = document.body.clientwidth;
h = document.body.clientheight
}
}
return {
width: a,
height: h
};
}
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product