/**
 * 获取屏幕宽高
 */
Vue.prototype.getViewportSize = function(){
  return {
    width: window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
    height: window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
  };
};

 

相关文章:

  • 2022-01-08
  • 2021-09-04
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2021-11-18
  • 2021-12-03
相关资源
相似解决方案