client:function(){
if (window.innerWidth !== null) {//最高浏览器
return{
"width":window.innerWidth,
"height":window.innerHeight
}
}else if (document.compatMode ==="CSS1Compat") {//W3C
return{
"width":document.documentElement.clientWidth,
"height":document.documentElement.clientHeight
}
}
return{
"width":document.body.clientWidth,
"height":document.body.clientHeight
}
}