2020年4月3日

数据库日历表

摘要: CREATE TABLE yx_news_num (i int);-- 创建一个表用来储存0-9的数字INSERT INTO yx_news_num (i) VALUES (0), (1), (2), (3), (4), (5), (6), (7), (8), (9);-- 生成0-9的数字,方便以 阅读全文

posted @ 2020-04-03 17:22 makeinchina 阅读(785) 评论(0) 推荐(0) 编辑

2019年3月26日

安装php开发环境

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2019-03-26 10:54 makeinchina 阅读(1) 评论(0) 推荐(0) 编辑

2019年3月7日

linux守护进程(supervisorctl)

摘要: centos7安装supersor详细教程(参考链接:https://blog.csdn.net/donggege214/article/details/80264811) 1、yum install -y supervisor 生成这两个文件,并在supervisord.d目录下创建 xxx.in 阅读全文

posted @ 2019-03-07 18:50 makeinchina 阅读(293) 评论(0) 推荐(0) 编辑

2018年11月18日

好用的thinkphp通用后台【YahoAdmin】和社区论坛 【Sea社区】

摘要: 好用的thinkphp通用后台【YahoAdmin】和社区论坛 【Sea社区】,入口:http://www.fjcnhk.top/,一起打包走吧 【原文链接:http://www.fjcnhk.top/index/forum/noteDetail.html?id=19】 源码介绍:这是一套基于纯Th 阅读全文

posted @ 2018-11-18 14:55 makeinchina 阅读(1526) 评论(1) 推荐(0) 编辑

2018年10月29日

Signature 阿里云签名值获取方法

摘要: 'JSON','Version' => '2017-03-21','SignatureMethod' => 'HMAC-SHA1','SignatureNonce' => time() + rand(50000,100000),'SignatureVersion' => '1.0','AccessKeyId' => $a,'Timestamp' => date('Y-m-d',$h_8 阅读全文

posted @ 2018-10-29 17:43 makeinchina 阅读(1003) 评论(0) 推荐(0) 编辑

2018年10月27日

html 笔记 {$time|date="Y-m-d H:i:s",###}

摘要: 1、 {$time|date="Y-m-d H:i:s",###} 2、a标签验证后再跳转新窗口 阅读全文

posted @ 2018-10-27 17:59 makeinchina 阅读(1773) 评论(0) 推荐(0) 编辑

2018年10月26日

html点击复制兼容clipboard

摘要: (参考自 https://clipboardjs.com/) 阅读全文

posted @ 2018-10-26 10:51 makeinchina 阅读(194) 评论(0) 推荐(0) 编辑

2018年9月16日

phpstorm操作集锦

摘要: 1、连接服务器代码 1)Tools->deployment->configuration 2)设置连接的服务器 3)下载代码(如下图,可设置automatic upload 自动上传代码,或者upload to 手动上传) 阅读全文

posted @ 2018-09-16 16:34 makeinchina 阅读(114) 评论(0) 推荐(0) 编辑

2018年8月18日

图片、音频获取二进制流或url的blob值

摘要: 1、HTML部分 2、JS部分 //生成二进制流 var fileReader = new FileReader(); fileReader.readAsDataURL(blobFile); fileReader.onload = function() { console.log(this.resu 阅读全文

posted @ 2018-08-18 08:45 makeinchina 阅读(3192) 评论(0) 推荐(0) 编辑

2018年4月2日

sublime text 3 快捷键

摘要: (参考:https://www.douban.com/note/362268947/) 选择类Ctrl+D 选中光标所占的文本,继续操作则会选中下一个相同的文本。Alt+F3 选中文本按下快捷键,即可一次性选择全部的相同文本进行同时编辑。举个栗子:快速选中并更改所有相同的变量名、函数名等。Ctrl+ 阅读全文

posted @ 2018-04-02 14:45 makeinchina 阅读(151) 评论(0) 推荐(0) 编辑

dd与sql 打印工具

摘要: function dd() { array_map(function($x) { dump($x); }, func_get_args()); exit; } function sql($var=''){ $sql = M()->getLastSql(); if($var){ dd($var,$sql); }else{ d... 阅读全文

posted @ 2018-04-02 14:24 makeinchina 阅读(139) 评论(0) 推荐(0) 编辑

2018年3月31日

php生成二维码(可带logo)

摘要: 前提步骤:下载 1、前端页面 2、方法 阅读全文

posted @ 2018-03-31 08:39 makeinchina 阅读(264) 评论(0) 推荐(0) 编辑

2018年3月12日

jQuery append加入的元素 绑定事件无效

摘要: 一、问题1是:通过jQuery append(或者before、after,一样)新添加进网页的元素,常用的事件不能触发,比如:append了id 为 abc 的元素,那么 $(#abc).click(function(){})是没有效果的。 解决方法:用on函数,要注意格式 正确格式: $("ou 阅读全文

posted @ 2018-03-12 11:33 makeinchina 阅读(312) 评论(0) 推荐(0) 编辑

2018年2月27日

Linux运维架构师学习之路

摘要: (参考自:http://www.360doc.com/content/16/0517/17/32882454_559936987.shtml) Linux运维学习阶段,需要分为四个阶段,linux初级入门-linux中级进阶-linux高级提升,和资深方向细化。第一阶段:初级入门初级阶段需要把lin 阅读全文

posted @ 2018-02-27 11:10 makeinchina 阅读(536) 评论(0) 推荐(0) 编辑

2018年2月14日

硬盘安装win7

摘要: 参考:http://xxt.wulianxinbo4.cn/ylmf64win7.html 1、 网上下载好会得到一个http://dow.windowsqjp.com:7456/360/WIN7_X64_2017_360_9.360_0116.iso压缩文件如下图, 2、 选择http://dow 阅读全文

posted @ 2018-02-14 11:21 makeinchina 阅读(180) 评论(0) 推荐(0) 编辑

2018年2月8日

Composer安装与使用

摘要: 一)、window 安装composer 1、安装步骤:http://docs.phpcomposer.com/00-intro.html; 基本用法:http://docs.phpcomposer.com/01-basic-usage.html; 或者下载地址(composer.phar和Comp 阅读全文

posted @ 2018-02-08 16:44 makeinchina 阅读(353) 评论(0) 推荐(0) 编辑

Js循环做法

摘要: 一、循环语句(参考:http://www.jb51.net/article/80844.htm) 1、for……in…… 2、map 3、array 阅读全文

posted @ 2018-02-08 14:13 makeinchina 阅读(123) 评论(0) 推荐(0) 编辑

正则表达式

摘要: 引用(https://segmentfault.com/a/1190000013075245?utm_source=weekly&utm_medium=email&utm_campaign=email_weekly) 先来个简单的例子: 种类 一、字符类 [] $reg = /[abc]/; //匹 阅读全文

posted @ 2018-02-08 10:27 makeinchina 阅读(115) 评论(0) 推荐(0) 编辑

2018年2月4日

惠普电脑(HP电脑)win10不能使用U盘,且无安全选项卡解决方法

摘要: 卸载 HP Device Acces Manager win10和HP Device Acces Manager不兼容 进入控制面板-》程序与功能, 找到HP Device Acces Manager,卸载,重启电脑,完成。 阅读全文

posted @ 2018-02-04 07:56 makeinchina 阅读(2235) 评论(0) 推荐(0) 编辑

2018年2月1日

redis安装

摘要: (要注意的安装安全事项:1:不要默认的端口6379;2:改成本地ip访问,不要把redis的端口暴露在公网(不要公网访问)) 找到port 6379这行,把6379改为8888; 启动redis服务:redis-server redis.conf; redis-cli -p 8888, 测试端口是否 阅读全文

posted @ 2018-02-01 17:34 makeinchina 阅读(131) 评论(0) 推荐(0) 编辑

2018年1月31日

swoole知识点

摘要: swoole入门教程:https://github.com/szyhf/swoole_study 阅读全文

posted @ 2018-01-31 17:22 makeinchina 阅读(162) 评论(0) 推荐(0) 编辑

2018年1月19日

memcache安装与php代码使用(lnmp一键安装后添加memcache模块)

摘要: memcache 安装 (安装前重点提示:只需要操作 一、memcached和libevent 和 四、安装Memcached的PHP扩展)这里只要安装memcached,使用memcached就ok了 一、安装memcached和libevent(libevent是memcached的依赖包) 二 阅读全文

posted @ 2018-01-19 17:07 makeinchina 阅读(145) 评论(0) 推荐(0) 编辑

2018年1月17日

上拉下拉刷新加载更多(适用pc端、移动端)

摘要: 可以参考资料:(https://www.jianshu.com/p/65c718093d44) thinkphp3.2做法: 控制器: 视图层: 引入dropload.js 引入dropload.css 完毕!!! 阅读全文

posted @ 2018-01-17 10:39 makeinchina 阅读(672) 评论(0) 推荐(0) 编辑

2018年1月8日

puttygen用法,使用TortoiseGit时实现SSH免密码登录

摘要: (注:引入自:http://blog.csdn.net/roxliu/article/details/31790985) 1、安装完window的git后,在目录 C:\Program Files\TortoiseGit\bin 下,找到puttygen.exe 保存后生产 ppk 文件。 2、本地 阅读全文

posted @ 2018-01-08 15:26 makeinchina 阅读(1654) 评论(0) 推荐(0) 编辑

mysql本地连不上远程

摘要: (注:引用至 https://www.2cto.com/database/201504/391816.html) 1. 排除网络或防火墙问题 先看是否能ping通远程服务器,ping 192.168.1.211,如果不可以就是网络问题。然后,检查端口是否被防火墙挡住了,telnet 192.168. 阅读全文

posted @ 2018-01-08 10:38 makeinchina 阅读(245) 评论(0) 推荐(0) 编辑

2017年12月28日

安装lnmp

摘要: 解压命令 (tar -zxvf .tar.gz| tar xvf .tgz) 安装lnmp1.4(https://lnmp.org/install.html)wget -c http://soft.vpser.net/lnmp/lnmp1.4.tar.gz && tar zxf lnmp1.4.ta 阅读全文

posted @ 2017-12-28 11:45 makeinchina 阅读(143) 评论(0) 推荐(0) 编辑

2017年12月20日

微信监听返回按钮

摘要: JavaScript加入这个就无法返回 阅读全文

posted @ 2017-12-20 14:38 makeinchina 阅读(157) 评论(0) 推荐(0) 编辑

2017年12月15日

linux系统安装

摘要: 一、下载 centos: 1、http://mirrors.sohu.com/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-1708.iso (CentOS-7-x86_64-DVD-1708.iso) 2、thunder://QUFodHRwOi8vbGludX 阅读全文

posted @ 2017-12-15 11:38 makeinchina 阅读(364) 评论(0) 推荐(0) 编辑

2017年12月14日

git-bash的一些操作命令

摘要: 一、操作git-bash 1、添加 git add 11.txt 22.txt 33.txt 2、提交 git commit -m "add wenjian" 3、git push 提交到远程服务器(第一次push:git push origin master) 4、如果版本号对应不上又提交不了(e 阅读全文

posted @ 2017-12-14 17:31 makeinchina 阅读(327) 评论(0) 推荐(0) 编辑

git客户端同步到服务器--服务器自动部署项目之GitHooks神器

摘要: (注: 引入 http://blog.csdn.net/wsyw126/article/details/52167147) 总结小点: 1、创建linux空仓库(详见“在 Linux 下搭建 Git 服务器”); 2、在项目位置clone仓库,生成仓库名的项目; 3、创建master分支(我的方式是 阅读全文

posted @ 2017-12-14 16:58 makeinchina 阅读(1492) 评论(0) 推荐(0) 编辑

导航