jQuery仿手机通讯录选中删除联系人代码,还支持单选多选全选、选择组等效果。
js代码
<script type=\"text/javascript\" src=\"js/jquery.min.js\"></script> <script type=\"text/javascript\"> // 判断是否为pc还是移动端。true为移动端 function detectmob() { if( navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i) ){ return true; } else { return false; } } if(!detectmob()) { $(\"#selectPage\").removeClass(\'weui-popup__container\'); $(\"#selectPage .weui-popup__modal\").css({ \"-webkit-transform\": \"none\", \"-moz-transform\": \"none\", \"-ms-transform\": \"none\", \"transform\": \"none\" }) $(\"#seachPage\").css({ \"z-index\": 120 }) $(\"#selectPage .weui-popup__overlay\").addClass(\'hide\'); $(\".sel-btn,.back-btn\").addClass(\'hide\'); $(\".gray-bg\").css({ \"position\":\"relative\", \"width\": 740, \"height\": 600, \"margin\": \"auto\" }) $(\"#indexPage\").css({ \"width\": 370 }) $(\"#selectPage\").css({ \"width\": 370, \"position\": \"absolute\", \"height\": \"100%\", \"top\":0, \"right\":0 }) } </script> <script src=\"js/icheck.min.js\"></script> <script src=\"js/jquery-weui.js\"></script> <script src=\"js/doT.min.js\"></script> <script src=\"js/mailList2.js\"></script>
暂无评论内容