<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>WebApp启动页</title>
<script type="text/javascript" src="../js/jQuery.js"></script>
<style type="text/css">
body{
width: 100%;
padding: 0;
margin: 0;
}
input{
padding: .2rem;
margin: .5rem auto 0 auto;
font-size: .5rem;
border-radius: .5rem;
display: block;
width: 5rem;
color: red;
background: white;
}
#Text{
line-height: .6rem;
font-size: .35rem;
color: red;
padding: .3rem;
text-align: center;
}
</style>
</head>
<body>
<input type="button" value="当前位置" + error.message);
}, {
maximumAge: 5000
});
});

/**
* 关闭监听设备位置信息: plus.geolocation.clearWatch( watchId )
* watchId: 调用watchPosition方法的返回值
*/
$('#ClearWatch').on('touchstart', function(){
plus.geolocation.clearWatch(watchId);
});
});
</script>

相关文章:

  • 2021-12-10
  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2022-12-23
  • 2021-09-06
  • 2022-01-01
猜你喜欢
  • 2021-09-08
  • 2021-12-27
  • 2022-01-22
  • 2022-12-23
  • 2021-06-30
相关资源
相似解决方案