vinc 发布的帖子
发布在 技术交流 阅读更多

getScreenWidth: function(){
let baseUI = packageNameStartsWith("").depth(0).visibleToUser(true).findOne()
let width = baseUI.bounds().right
return width
},

getScreenHeight: function(){
    let baseUI = packageNameStartsWith("").depth(0).visibleToUser(true).findOne()
    let height = baseUI.bounds().bottom
    return height
},