vue 获取屏幕宽高 width height

函数封装:javascript /** * 获取屏幕宽高 */ Vue.prototype.getViewportSize = function(){ return { width: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, height:
相关文章
相关标签/搜索