首页 > 微信 > 详细

微信长按出现菜单栏js代码

时间:2016-02-29 19:30:59      阅读:268      评论:0      收藏:0      [点我收藏+]

ios:

-webkit-user-select:none;
-ms-user-select: none;
-moz-user-select: none;
user-select: none;
-webkit-touch-callout:none;
-ms-touch-callout:none;
-mozt-touch-callout:none;
touch-callout:none;

安卓:
<div class="main3">touch事件</div>
$(function(){
$(‘.main3‘).bind(‘touchstart‘, function(e) {
if (e && e.preventDefault) {
e.preventDefault();
} else {
window.event.returnValue = false;
}
return false;
});
$(‘.main3‘).bind(‘touchmove‘, function(e) {
if (e && e.preventDefault) {
e.preventDefault();
} else {
window.event.returnValue = false;
}
return false;
});

$(‘.main3‘).bind(‘touchend‘, function(e) {
if (e && e.preventDefault) {
e.preventDefault();
} else {
window.event.returnValue = false;
}

})


})

微信长按出现菜单栏js代码

原文:http://www.cnblogs.com/fcan/p/5228457.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!