获取屏幕宽度、高度 function getBrowserInterfaceSize() { var pageWidth = window.innerWidth; var pageHeight = window.innerHeight; if (typeof pageWidth != "number") { pageWidth = document.documentElement.clientWidth || document.body.c
function getBrowserInterfaceSize() { var pageWidth = window.innerWidth; var pageHeight = window.innerHeight; if (typeof pageWidth != "number") { pageWidth = document.documentElement.clientWidth || document.body.clientWidth; pageHeight = document.documentElement.clientHeight || document.body.clientHeight; } return { pageWidth: pageWidth, pageHeight: pageHeight } }