Skip to content

getWindowWidth ​

获取屏幕宽度(单位:px)

示例 ​

ts
import { getWindowWidth } from '@base-web-kits/base-tools-uni';

const windowWidth = getWindowWidth();
console.log('windowWidth:', windowWidth);

版本 ​

  • 1.0.0 新增