02 2017 档案

摘要:$("#id").DataTable({ aaSorting: [0, 'desc'], // 默认排序 aoColumnDefs: [ { "bSortable": false, "aTargets": [1,2,3] // 哪些列不排序 } ], }); 阅读全文
posted @ 2017-02-28 18:12 cloudshadow 阅读(4066) 评论(0) 推荐(0)
摘要:| 载入select2 | 清空下拉框列表值 Select2使用示例地址: https://select2.github.io/examples.html Select2参数文档说明: https://select2.github.io/options.html Select2源码: https:/ 阅读全文
posted @ 2017-02-25 14:51 cloudshadow 阅读(41527) 评论(4) 推荐(1)
摘要:在模态框的div中加上 aria-hidden="true" data-backdrop="static" × Modal title One fine body… Close Save changes... 阅读全文
posted @ 2017-02-24 15:40 cloudshadow 阅读(1422) 评论(0) 推荐(0)
摘要:去掉模态框的div中的 tabindex="-1" 这个属性 阅读全文
posted @ 2017-02-24 15:36 cloudshadow 阅读(2404) 评论(0) 推荐(0)
摘要:示例 说明 $(this) 当前元素 $("p") 所有元素 $("input") 所有input元素 $(".intro") 所有class=“intro” 的元素 $("p.intro") 所有class="intro" 的元素 $("#intro") id="intro" 的第一个元素 $("ul > li") ul下的所有li节点 $("ul l... 阅读全文
posted @ 2017-02-23 17:30 cloudshadow 阅读(167) 评论(0) 推荐(0)
摘要:Error:Failed to download resource "reds" // 下载reds失败 不过不需要担心,brew会已经从其它地方下载并正确安装了 配置文件路径: /usr/local/etc/redis.conf $ redis-server <!--?xml version="1 阅读全文
posted @ 2017-02-23 16:51 cloudshadow 阅读(26296) 评论(1) 推荐(1)
摘要:1 2 3 4 Javascript cookie 5 59 60 61 62 63 阅读全文
posted @ 2017-02-23 15:58 cloudshadow 阅读(205) 评论(0) 推荐(0)
摘要:1 /** 2 * 获取图片的Base64编码(不支持url) 3 * @date 2017-02-20 19:41:22 4 * 5 * @param $img_file 传入本地图片地址 6 * 7 * @return string 8 */ 9 function imgToBase64($img_file) { 10 11 $img_base6... 阅读全文
posted @ 2017-02-23 15:16 cloudshadow 阅读(7446) 评论(0) 推荐(1)
摘要:添加修改mysql配置 阅读全文
posted @ 2017-02-23 15:10 cloudshadow 阅读(1138) 评论(0) 推荐(0)
摘要:这里提供三种方法: 阅读全文
posted @ 2017-02-23 15:00 cloudshadow 阅读(3368) 评论(0) 推荐(0)