上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: import os import random from copy import deepcopy ''' 读取特定目录下所有的文件夹, 和文件名 ''' def eachDir(path): for fileDirPath,dirName,fileName in os.walk(path): print('当前文件夹路径:',fileDirPath) ... 阅读全文
posted @ 2018-08-10 12:05 yudis 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 结合Blob和OjbectURL实现更大的文件下载: 用new Blob包装了我们的txt,然后通过createObjectURL去把Blob转换成对象地址,这样浏览器就可以下载很大的文件了。 阅读全文
posted @ 2018-08-10 11:52 yudis 阅读(3849) 评论(0) 推荐(0) 编辑
摘要: db.getCollection('userLog').find({createAt:{"$gt":new Date("2018-08-05"),"$lt":new Date("2018-8-06")}}) 阅读全文
posted @ 2018-08-07 15:21 yudis 阅读(1196) 评论(0) 推荐(0) 编辑
摘要: var array = [ {name: 'a', phone: 1}, {name: 'b', phone: 5}, {name: 'd', phone: 3}, {name: 'c', phone: 4} ] array.sort(getSortFun('desc', 'phone')); function getSortFun(order, sortBy) { var ... 阅读全文
posted @ 2018-08-02 15:06 yudis 阅读(802) 评论(0) 推荐(0) 编辑
摘要: 关闭自动更新: 阅读全文
posted @ 2018-07-17 15:44 yudis 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 一、获得循环序号 二、从匿名包装器中返回一个函数 阅读全文
posted @ 2018-07-16 15:33 yudis 阅读(404) 评论(0) 推荐(0) 编辑
摘要: 访问对象: 一、点操作符(常量键访问) 二、中括号操作符(变量键访问) 删除对象: 删除属性的唯一方法是使用 delete 操作符;设置属性为 undefined 或者 null 并不能真正的删除属性, 而仅仅是移除了属性和值的关联。 判断键值是否存在: 遍历对象: 一、for in 阅读全文
posted @ 2018-07-16 15:13 yudis 阅读(2208) 评论(0) 推荐(0) 编辑
摘要: 一、双点解析 二、括号先计算再转换 三、加空串 阅读全文
posted @ 2018-07-16 15:09 yudis 阅读(113117) 评论(2) 推荐(1) 编辑
摘要: $host is used instead of $server_name to properly match between server block the corresponding domains. 阅读全文
posted @ 2018-07-14 18:00 yudis 阅读(87) 评论(0) 推荐(0) 编辑
摘要: downImg(remote, local) { const mkdir = (absLocal) => { if (fs.existsSync(absLocal)) { return true; } else { if (mkd... 阅读全文
posted @ 2018-06-22 16:17 yudis 阅读(848) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页