
工具和插件
文章平均质量分 54
ZTao-z
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python计算文件md5
python计算文件md5原创 2021-10-22 19:48:27 · 219 阅读 · 0 评论 -
使用father打包发布前端工具库
father库说明GitHub:https://github.com/umijs/father安装yarn add father项目配置0、项目结构1、配置fatherrc.js2、配置src/index.js3、配置components/index.tsx4、运行:father build运行后项目文件夹内会生成一个es文件目录,里面就是打包好的代码库发布代码包(1)发布到私有GitHub仓库// 正常的git提交代码git add .git commit ""原创 2021-03-20 17:25:22 · 9736 阅读 · 2 评论 -
URL超时后切换至备用URL并重试
轮询URL列表,采用setTimeout进行超时重试原创 2020-12-28 10:48:42 · 292 阅读 · 0 评论 -
React:动态配置嵌套路由及路由守卫
一个支持动态配置、支持路由守卫的React组件。原创 2020-12-08 20:08:12 · 1296 阅读 · 0 评论 -
二分法实现字符串比较
二分查找原创 2020-11-30 10:21:06 · 286 阅读 · 0 评论 -
用于爬取电子书的JS脚本
直接复制代码段到浏览器控制台回车运行即可代码忘了是拉哪个网站的了,好像是笔趣阁的?let links = document.querySelectorAll('dl > dd > a')let result = []for (let l of links) { $.ajax({ type: 'get', url: l.href, async: false, success: function(data) { console.log(type原创 2020-06-08 23:54:41 · 540 阅读 · 0 评论 -
Vue项目本地构建Docker镜像并自动部署到腾讯云
环境准备Docker,Vue配置文件部分nginx.conf#user nobody;worker_processes 1;# error_log /etc/nginx/logs/error.log;# error_log /etc/nginx/logs/error.log notice;# error_log /etc/nginx/logs/error.log info;#...原创 2020-04-26 22:31:50 · 883 阅读 · 0 评论 -
Python遍历文件目录并生成JSON结构树
利用pathlib库进行路径读取,然后递归进行搜索import os, re, json, copyfrom pathlib import Path, PurePathdef searchAllFiles(self, path, fileTree={}, initial=True): if initial: root = path if isinstance(path, str...原创 2019-10-03 10:38:08 · 4513 阅读 · 0 评论 -
Windows平台使用CreateProcess实现多进程同步启动
思路由于目前做音视频方面的内容,有些时候会遇到音频文件和视频文件分成两个文件,需要手动同步播放。专业的音视频处理软件又不会用,只会用ffmpeg。但ffmpeg要用命令行,而且要一个一个文件打开,同步比较麻烦。于是就想着开多个进程同步运行ffmpeg好了。Linux下有fork,Windows下有CreateProcess,这里实现的是Windows平台下的同步播放。CreateProcess...原创 2019-09-18 13:45:12 · 1658 阅读 · 0 评论 -
ubuntu安装WineHQ(官方教程)
UbuntuInstalling WineHQ packagesThe WineHQ repository key was changed on 2018-12-19. If you downloaded and added the key before that time, you will need to download and add the new key and...原创 2019-06-16 21:05:14 · 7460 阅读 · 0 评论 -
jQuery表单转成json字符串的形式并使用ajax提交
步骤一:表单转json字符串$.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name]) { if (!o[this.name].push) { ...原创 2018-09-08 23:50:16 · 725 阅读 · 0 评论 -
前端验证码生成器插件
此验证码生成器可以允许在前端直接生成验证码和从后端获取后台生成的验证码两种方式前端JS插件var getGVerify = function (id) { function GVerify(options) { //创建一个图形验证码对象,接收options对象为参数 this.options = { //默认options参数值 id: "...原创 2018-09-08 22:58:26 · 2542 阅读 · 0 评论