Skip to content

whyxy007/com.zhxjz.map.plugin.captureScreenSize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

com.zhxjz.map.plugin.captureScreenSize

获取屏幕尺寸大小
用法:
1.获取屏幕尺寸大小
captureScreenSize.getScreenSize(function(point){
var screenWidth = point[0];
var screenHeight = point[1];
},function(){alert('error')});

2.获取状态栏(statusbar)的高度
captureScreenSize.getStatusBarHeight(function(point){
var barHeight = point[0];
},function(){alert('error')});

备注:
在cordova-hybrid模式下,js获取不到屏幕的真实尺寸,需要调用原生获取返回

enjoy it :)

About

获取屏幕尺寸大小

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages