概述//
解决iphon,ipad上2次
点击 $(document).ready(function () { var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = sUserAgent.matc //解决iphon,ipad上2次点击 $(document).ready(function () { var sUserAgent = navigator.userAgent.tolowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; var bIsMIDp = sUserAgent.match(/mIDp/i) == "mIDp"; var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb"; var bIsAndroID = sUserAgent.match(/androID/i) == "androID"; var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce"; var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; var isScrolling; if (bIsIpad || bIsIphoneOs || bIsAndroID) { $('a').live('touchstart',function () { isScrolling = false; }) .live('touchmove',function (e) { isScrolling = true; }) .live('touchend',function (e) { if (!isScrolling) { window.location = $(this).attr('href'); } }); } }); 总结
以上是内存溢出为你收集整理的解决iphon,ipad上2次点击全部内容,希望文章能够帮你解决解决iphon,ipad上2次点击所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
评论列表(0条)