实现一个函数,运算结果可以满足如下预期结果: add(1)(2) // 3 add(1, 2, 3)(10) // 16 add(1)(2)(3)(4)(5) // 15 话不多说,实现如下: function add(){ var arr=Array.prototype.slice.call(ar ...
分类:
编程语言 时间:
2017-10-29 23:08:43
阅读次数:
282
官方URL:https://github.com/phpredis/phpredis/blob/master/arrays.markdown#readme Redis Arrays A Redis array is an isolated namespace in which keys are re ...
分类:
Web程序 时间:
2017-10-29 18:49:48
阅读次数:
286
if winter comes , can spring be far behind; #冬天来了,春天还会远吗? 自我介绍:Introduction Hello everyone! My name is fxh. You can call me hui. I'm a DBA. I live in ...
分类:
其他好文 时间:
2017-10-29 17:38:36
阅读次数:
129
1.1继承的基本概念 使用一个子类,继承另一个父类,那么子类可以自动拥有父类中的所有属性和方法,这个过程叫做继承。 >>>继承的两方,发生在两个类之间。 实现继承的三种方式: 扩展Object的prototype实现继承、使用call和apply和bind实现继承、使用原型实现继承。 1.2扩展Ob ...
分类:
编程语言 时间:
2017-10-29 13:47:05
阅读次数:
176
0.页面中准备树的ul 1.生成部门树的JS 后台返回的JSON数据格式: 生成的树结构: 2.根据树的name属性动态设置前面的复选框为选中(根据树节点的名字判断,也可以根据其他属性判断) js中debugger查看nodes(JS数组): 查看第一个节点:(有好多属性) 效果: ...
分类:
其他好文 时间:
2017-10-29 12:57:26
阅读次数:
433
简介 PHP(超文本预处器)是一种通用开源脚本语言。语法吸收了C语言、Java和Perl的特点,利于学习,使用广泛,主要适用于Web开发领域。PHP 独特的语法混合了C、Java、Perl以及PHP自创的语法。它可以比CGI或者Perl更快速地执行动态网页。用PHP做出的动态页面与其他的编程语言相比 ...
分类:
编程语言 时间:
2017-10-29 12:48:45
阅读次数:
203
PING 127.1 -n 5 >nul TIMEOUT /t 10 > nul CALL cmd /k start C:\\Users\\lenovo\\Desktop\\tesst.bat taskkill /F /IM notepad.exe ...
分类:
其他好文 时间:
2017-10-29 11:22:52
阅读次数:
123
One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, we say that A and B is re ...
分类:
其他好文 时间:
2017-10-28 21:10:30
阅读次数:
203
基本配置 不用任何插件的情况下,先按如下配置: set nu syntax on set hlsearch set tabstop=4 set shiftwidth=4 set expandtab set smartcase set ic colorscheme srcery-drk Vundle ...
分类:
系统相关 时间:
2017-10-28 21:06:32
阅读次数:
275
使用前提:Windows环境配置了Anaconda 3,其中python版本为3.6.2. 默认安装pandas。 Mysql版本:下载了Mysql 5.7.17版本,一路next安装完成。 目标:将pandas的dataframe数据存到数据库中。 遇到的问题: 返回: 搜了下,应该是MySQLd ...
分类:
数据库 时间:
2017-10-28 17:42:51
阅读次数:
305