摘要: 1.常见的时间复杂度(按耗费的时间排序,时间耗费越少效率越高) O(1)<O(logn)<O(n)<O(nlogn)<O(n2)<O(n2logn)<O(n3) 循环减半就是(O(logn)) 2.冒泡排序 3.冒泡排序优化 4.快速排序 阅读全文
posted @ 2017-03-10 13:19 明天OoO你好 阅读(215) 评论(0) 推荐(0) 编辑
摘要: function deleteData() { var id_list = []; $('#table_body').find(':checkbox').each(function () { if ($(this).prop('checked')) { id_list.push($(this).va 阅读全文
posted @ 2017-03-07 21:20 明天OoO你好 阅读(219) 评论(0) 推荐(0) 编辑
摘要: /* CSRF配置 */function csrfSafeMethod(method) { // these HTTP methods do not require CSRF protection return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method)); 阅读全文
posted @ 2017-03-07 21:15 明天OoO你好 阅读(1294) 评论(0) 推荐(0) 编辑
摘要: 1.将字符串的时间转换为时间戳方法:a = "2013-10-10 23:40:00"将其转换为时间数组import timetimeArray = time.strptime(a, "%Y-%m-%d %H:%M:%S")转换为时间戳:timeStamp = int(time.mktime(tim 阅读全文
posted @ 2017-03-07 15:04 明天OoO你好 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 一、jQuery绑定事件的四种方式:(以click事件举例) 二、jQuery全部知识 http://www.cnblogs.com/wt11/p/6109231.html 阅读全文
posted @ 2017-03-06 16:26 明天OoO你好 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 一、安装nginx 以前的博客我有写,这里就不写了 http://www.cnblogs.com/wt11/p/6420442.html 二、安装mysql 我用的mysql5.7 64位的二进制包,官网下载安装编译好的二进制包,解压直接使用即可 https://dev.mysql.com/get/ 阅读全文
posted @ 2017-03-06 11:05 明天OoO你好 阅读(5130) 评论(0) 推荐(0) 编辑
摘要: BIG3CLIK6F-eyJsaWNlbnNlSWQiOiJCSUczQ0xJSzZGIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNr... 阅读全文
posted @ 2017-02-27 14:10 明天OoO你好 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1.pcre及nginx安装包下载 wget http://www.pcre.org/ pcre用yum安装即可 http://nginx.org/en/download.html 2.安装 -安装所需依赖 yum install -y openssl openssl-devel gcc* -y - 阅读全文
posted @ 2017-02-20 17:14 明天OoO你好 阅读(1577) 评论(0) 推荐(1) 编辑
摘要: 官方文档有句话"allows you to call any program",并且: helps you write shell scripts in Python by giving you the good features of Bash 第一句话助你在Python中轻松调用自己的程序,第二 阅读全文
posted @ 2017-02-19 22:05 明天OoO你好 阅读(4067) 评论(0) 推荐(0) 编辑
摘要: 1.models相关操作 2.其他相关文档 阅读全文
posted @ 2017-02-13 13:05 明天OoO你好 阅读(206) 评论(0) 推荐(0) 编辑