Skip to content

终端设备自适应 #13

Description

@xydm

const width = util.isPhone() ? document.body.clientWidth : 360;
const height = util.isPhone() ? document.body.clientHeight : 600;
源码中判断是否为移动端时,条件取值反了,建议修改为:
const width = util.isPhone() ? 360 : document.body.clientWidth;
const height = util.isPhone() ? 600 : document.body.clientHeight;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions