摘要: <!DOCTYPE HTML> <html lang="en"> <head> <meta charset="UTF-8" /> <title>JQuery JSONView</title> <link rel="stylesheet" href="jquery.jsonview.css" /> < 阅读全文
posted @ 2017-08-06 18:41 教父123 阅读(270) 评论(0) 推荐(0) 编辑
摘要: if(defalutValue ''){ $(id).val(["无"]).select2(); }else{ $(id).val([defalutValue]).select2(); } 阅读全文
posted @ 2017-08-06 18:32 教父123 阅读(952) 评论(0) 推荐(0) 编辑
摘要: $('#qrCode').click(function(e){ $('#myFile').click(); e.stopPropagation(); $('#qrCode').unbind("click"); //移除click return false; }); var container = d 阅读全文
posted @ 2017-08-06 18:29 教父123 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 引入: <script src="../styles/js/plugins/zeroclipboard/ZeroClipboard.min.js"></script> //复制整行数据:function copyDataByZeroClipboard() { var cellClick = new 阅读全文
posted @ 2017-08-06 18:18 教父123 阅读(199) 评论(0) 推荐(0) 编辑
摘要: var setting = { view: { selectedMulti: false }, check: { enable: true //初始化树function treeInt(){ $('#treeDemo').empty(); $.ajax({ type:"get",// url:"/s 阅读全文
posted @ 2017-08-06 18:01 教父123 阅读(194) 评论(0) 推荐(0) 编辑
摘要: var oWidth = $('#asideTool').innerWidth();获取宽 var disWidth = $('#asideTool').css('right') 获取右边距 $('#asideTool')[0].style.transition = '.5s ease'; 开启硬件 阅读全文
posted @ 2017-08-06 17:33 教父123 阅读(270) 评论(0) 推荐(0) 编辑
摘要: $(this).stop().slideToggle(); 阅读全文
posted @ 2017-08-06 17:30 教父123 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 在jquery之后引用, $(function(){//ul/li的折叠效果 FastClick.attach(document.body); ...... }); 阅读全文
posted @ 2017-08-06 17:28 教父123 阅读(118) 评论(0) 推荐(0) 编辑
摘要: $(window).scroll(function () { var scrollH = window.screen.height; if ($(window).scrollTop() > scrollH) { $("#mob_backTop").fadeIn(60);// console.log( 阅读全文
posted @ 2017-08-06 17:23 教父123 阅读(182) 评论(0) 推荐(0) 编辑
摘要: function browserRedirect() { var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = 阅读全文
posted @ 2017-08-06 17:22 教父123 阅读(331) 评论(0) 推荐(0) 编辑