<script>
var timeout = undefined;
var state=0;
var lastTime=null;
$(function () {
$(".lock_sces").on("touchmove", function (event) {
if(state==1){
$(".mask").show();
$(".jinyongmen").show();
}
});
$(".lock_sces").on("touchstart", function (event) {
lastTime=new Date().getTime();
event.preventDefault();//阻止
clearTimeout(timeout);
state=0;
timeout = setTimeout(function() {
state=1;
}, 3000);
});
});
script>
0条评论