仓库初始化 git init 设置本地仓库签名 git config user.name user_name git config user.email user_email 设置系统用户签名 git config --global user.name user_name git config -- ...
分类:
其他好文 时间:
2020-05-29 23:00:04
阅读次数:
68
#!/usr/bin/env python # -*- coding: utf-8 -*- # # # Date : xxxx-xx-xx # # Author : Created by zhouwanchun. # # Wechat : loveoracle11g # # Function: Th ...
分类:
数据库 时间:
2020-05-29 19:47:31
阅读次数:
103
<?php /* * 验证错误 * 如果没有错 就返回空 * 有错返回错误信息 */ function check($file){ // 1. 验证是否有误 if($file['error'] != 0){ switch($file['error']) { case 1: return "文件大小超 ...
分类:
Web程序 时间:
2020-05-29 12:18:06
阅读次数:
108
$(document).on('click','.upimgbtn', function() { var pos = $(this).data('pos'); var posTxt = {'photo1':'照片1','photo2':'照片2','photo3':'照片3'}; var that ...
分类:
Web程序 时间:
2020-05-29 11:53:02
阅读次数:
102
git rm git rm filename|-r name 在删除某个分支的某些文件或文件夹,使用这个命令似乎会作用到所有本地分支上(是我使用姿势不对?) 弄得我reset head ,checkout半天 但是-r --cached 又只删缓存区对于已经commit+push的文件没啥办法 我现 ...
分类:
其他好文 时间:
2020-05-28 18:16:07
阅读次数:
80
先上代码: Vue.prototype.download = function(oUrl, filename) { this.axios .get(oUrl, { responseType: 'arraybuffer' }) .then((res) => { console.log(res); // ...
分类:
其他好文 时间:
2020-05-27 15:55:25
阅读次数:
254
PHP文件处理—打开/关闭文件 一:打开文件 对文件进行操作的时候,我们首先要做的就是打开文件,这是进行数据存取的第一步。在PHP中使用 fopen()函数打开文件,fopen()函数的语法如下: resource fopen ( string $filename , string $mode [, ...
分类:
Web程序 时间:
2020-05-27 13:47:49
阅读次数:
94
1、光标后插入"a", 行尾插入"A" 2、后插一行插入"o",前插一行插入"O" 3、删除字符插入"s", 删除正行插入"S" 4、光标前插入"i",行首插入"I" 5、删除一行"dd",删除后进入插入模式"cc"或者"S" 6、删除一个单词"dw",删除一个单词进入插入模式"cw" 7、删除一个 ...
分类:
系统相关 时间:
2020-05-27 12:03:44
阅读次数:
77
参考文档:https://www.cnblogs.com/yuhaohao/p/9770701.html命令:fio--filename=/mnt/test_rw--bs=16K--rw=randwrite--size=20G--runtime=300--time_based--ioengine=libaio--iodepth=16--numjobs=2--group_reporting--nam
分类:
系统相关 时间:
2020-05-26 23:29:02
阅读次数:
93
DOM 解析器介绍 DOM的 xml.dom.minidom 子模块、xml.dom.pulldom 子模块分别提供两种形式的解析器。 xml.dom.minidom 子模块 主要提供对 XML 文档的读、修改操作,解析器的使用格式如下: xml.dom.minidom.parse(filename ...
分类:
其他好文 时间:
2020-05-26 18:34:45
阅读次数:
70