码迷,mamicode.com
首页 >  
搜索关键字:call apply bind    ( 18595个结果
phpexcel图片获取
phpexcel图片获取常见的两种方式: require_once dirname(__FILE__) . '/../Jn/PHPExcel.php'; $filePath = "123.xls"; $inputFileType = PHPExcel_IOFactory::identify($fil ...
分类:Web程序   时间:2020-07-29 17:38:51    阅读次数:81
LeetCode 155 最小栈
设计一个支持 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
自定义rpc
测试代码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
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
原创: druid配置及解决:Failed to bind properties under 'spring.datasource' to javax.sql.DataSource
如何没有添加依赖log4依赖包会报错:Failed to bind properties under 'spring.datasource' to javax.sql.DataSource 网上查了下,没有找打相关的报错解决办法,所以在解决问题后,整理到网上,帮助有需要的朋友。 1:添加配置 dru ...
分类:数据库   时间:2020-07-28 00:28:57    阅读次数:128
面试题记录1
面试题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
redis简单使用
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工作原理及心跳机制
Eureka原理 1.基本原理上图是来自eureka的官方架构图,这是基于集群配置的eureka;处于不同节点的eureka通过Replicate进行数据同步Application Service为服务提供者Application Client为服务消费者Make Remote Call完成一次服务 ...
分类:其他好文   时间:2020-07-27 15:51:57    阅读次数:180
DNS服务器主从配置
环境: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
18595条   上一页 1 ... 45 46 47 48 49 ... 1860 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!