<!DOCTYPE html>
<html>
<head>
<title>MES system</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<script type="text/javascript" charset="utf-8">
function audioCapture() {
var time = 3000;
navigator.vibrate(time);
}
function vibrate() {
var pattern = [1000, 1000, 3000, 1000, 5000];
navigator.vibrate(pattern);
}
</script>
</head>
<body style="padding-top:10px">
<a href='javascript:history.go(-1)'><span><img src="img/t18.jpg" height="26"></span></a>
<h2>Vibrate</h2>
<br>
<br>
<button style="font-size:23px;" onclick="audioCapture();">Vibration</button>
<br>
<hr>
<button style="font-size:23px;" onclick="vibrate();">Vibration2</button>
</body>
</html>cordova 振动
最新推荐文章于 2024-08-07 09:17:50 发布

312

被折叠的 条评论
为什么被折叠?



