获取屏幕尺寸大小
用法:
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获取不到屏幕的真实尺寸,需要调用原生获取返回
-
Notifications
You must be signed in to change notification settings - Fork 0
whyxy007/com.zhxjz.map.plugin.captureScreenSize
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|