phpexcel图片获取常见的两种方式: require_once dirname(__FILE__) . '/../Jn/PHPExcel.php'; $filePath = "123.xls"; $inputFileType = PHPExcel_IOFactory::identify($fil ...
分类:
Web程序 时间:
2020-07-29 17:38:51
阅读次数:
81
封装 axios 模块 封装背景 使用 axios 发起一个请求是比较简单的事情,但是axios没有进行封装复用,项目越大的话会造成代码冗(rǒng )余,维护会越来越难。 所以在此二次封装,是项目中各个组件能够复用,让代码更容易维护。 封装要点 统一 url 配置 统一 api 请求 reques ...
分类:
其他好文 时间:
2020-07-29 09:57:02
阅读次数:
87
设计一个支持 push ,pop ,top 操作,并能在常数时间内检索到最小元素的栈。 push(x) —— 将元素 x 推入栈中。 pop() —— 删除栈顶的元素。 top() —— 获取栈顶元素。 getMin() —— 检索栈中的最小元素。 示例: 输入: ["MinStack","push ...
分类:
其他好文 时间:
2020-07-28 22:36:05
阅读次数:
71
今天用jdbc连接MySQL 怎么连接都是Communications link failure,网上查了一圈资料,基本都是mysql﹥ show global variables like 'wait_timeout'; wait_timeout的设置问题,按照他们的改了后,还是failure,我 ...
分类:
数据库 时间:
2020-07-28 22:13:05
阅读次数:
80
异常错误:Communications link failure The last packet successfully received from the server was 3,544 milliseconds ago 解决方法: 找到application-druid.yml文件 将tes ...
分类:
数据库 时间:
2020-07-28 17:05:15
阅读次数:
206
Type = SqlFunc.IF(s.Type == 10).Return(1) .ElseIF(s.Type == 20).Return(2) .End(0) 等同于Select语句中的 (CASE WHEN ( [s].[type] =10 ) THEN 1 WHEN ( [s].[type] ...
分类:
数据库 时间:
2020-07-28 17:04:34
阅读次数:
103
MVC 与 Vue 本文写于 2020 年 7 月 27 日 首先有个问题:Vue 是 MVC 还是 MVVM 框架? 维基百科告诉我们:MVVM 是 PM 的变种,而 PM 又是 MVC 的变种。 所以一定程度上来说,三者的思想方向是一样的。所以不管 Vue 是 MVC 还是 MVVM 或者都不是 ...
分类:
Web程序 时间:
2020-07-28 16:54:05
阅读次数:
87
pub/sub 这个应该?家?到最?的设计模式了, class Event{ constructor(){ this.callbacks = {} } $off(name){ this.callbacks[name] = null } $emit(name, args){ let cbs = thi ...
分类:
其他好文 时间:
2020-07-28 14:40:21
阅读次数:
82
测试代码Github地址:https://github.com/zhouyanger/java_demo/tree/master/netty 五.自定义 RPC 5.1 概述 RPC(Remote Procedure Call),即远程过程调用,它是一种通过网络从远程计算机程序 上请求服务,而不需要 ...
分类:
其他好文 时间:
2020-07-28 13:58:23
阅读次数:
69
vimrc配置 set nocompatible call pathogen#infect() filetype plugin indent on set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set termencoding=ut ...
分类:
系统相关 时间:
2020-07-28 13:55:19
阅读次数:
170