phpexcel图片获取常见的两种方式: require_once dirname(__FILE__) . '/../Jn/PHPExcel.php'; $filePath = "123.xls"; $inputFileType = PHPExcel_IOFactory::identify($fil ...
分类:
Web程序 时间:
2020-07-29 17:38:51
阅读次数:
81
设计一个支持 push ,pop ,top 操作,并能在常数时间内检索到最小元素的栈。 push(x) —— 将元素 x 推入栈中。 pop() —— 删除栈顶的元素。 top() —— 获取栈顶元素。 getMin() —— 检索栈中的最小元素。 示例: 输入: ["MinStack","push ...
分类:
其他好文 时间:
2020-07-28 22:36:05
阅读次数:
71
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
如何没有添加依赖log4依赖包会报错:Failed to bind properties under 'spring.datasource' to javax.sql.DataSource 网上查了下,没有找打相关的报错解决办法,所以在解决问题后,整理到网上,帮助有需要的朋友。 1:添加配置 dru ...
分类:
数据库 时间:
2020-07-28 00:28:57
阅读次数:
128
面试题1: function f(s){ console.log(this.a,s); //因为是apply,则为obj.f调用函数,那么this指的是obj, 则输出a为2;s接收的是arguments里面的参数3,则s为3; return this.a + s; } var obj = { a: ...
分类:
其他好文 时间:
2020-07-27 23:40:06
阅读次数:
77
1 Python操作Redis之普通连接 # 1 pip3 install redis # 简单使用 from redis import Redis # conn=Redis() #连接对象 conn=Redis(host='127.0.0.1', port=6379) ret=conn.get(' ...
分类:
其他好文 时间:
2020-07-27 17:45:49
阅读次数:
59
Eureka原理 1.基本原理上图是来自eureka的官方架构图,这是基于集群配置的eureka;处于不同节点的eureka通过Replicate进行数据同步Application Service为服务提供者Application Client为服务消费者Make Remote Call完成一次服务 ...
分类:
其他好文 时间:
2020-07-27 15:51:57
阅读次数:
180
环境:CentOS 8 主服务器:10.0.0.8 从服务器:10.0.0.28 访问测试主机:10.0.0.6 一、安装DNS服务器软件 bind dnf install bind bind-utils -y ; systemctl enable --now named 二、修改主服务器 bind ...
分类:
其他好文 时间:
2020-07-27 13:38:09
阅读次数:
65