2016-04-22 109 views

回答

1

使用此:

var width = window.innerWidth, 
    height = window.innerHeight;