求教,HTML5+如何获取安卓的版本号?
7***@qq.com
- 发布:2016-11-10 09:55
- 更新:2016-11-10 10:19
- 阅读:1316
1 个回复
amourz
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Device Example</title>
<script type="text/javascript">
// H5 plus事件处理
function plusReady(){
alert( "OS version: " + plus.os.version );
}
if(window.plus){
plusReady();
}else{
document.addEventListener("plusready",plusReady,false);
}
</script>
</head>
<body>
获取系统版本信息<br/>
</body>
</html>
好好看下文档吧 http://www.html5plus.org/doc/zh_cn/device.html#plus.os