获取设备分辨率

使用说明

import { MUtils } from '@yl/super-jssdk';

MUtils.getDeviceScreenResolution()

返回说明

参数 类型 作用
resolve Function 成功回调
reject Function 失败回调

代码示例

MUtils.getDeviceScreenResolution().then(res => {
  console.log('res', res);
}).catch(err => {
  console.log('err', err);
})

results matching ""

    No results matching ""