vue 獲取屏幕寬高 width height

函數封裝:javascript /** * 獲取屏幕寬高 */ Vue.prototype.getViewportSize = function(){ return { width: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, height:
相關文章
相關標籤/搜索