2016-04-22 146 views

回答

1

使用此:

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