Posted in Javascript onNovember 05, 2013
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 }; }
js函数返回多个返回值的示例代码
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@