getWidth
1.6.0

document.viewport.getWidth() -> Number

返回当前窗口可视部分的宽度。

相当于调用 document.viewport.getDimensions().width