let size = cc.view.getFrameSize(); cc.log('width:' + size.width); cc.log('height:' + size.height); 转载于:https://my.oschina.net/pysong/blog/860737