函数参数的扩展 默认参数 基本用法 function fn(name,age=17){ console.log(name+","+age); } fn("Amy",18); // Amy,18 fn("Amy",""); // Amy, fn("Amy"); // Amy,17 function f ...
分类:
其他好文 时间:
2019-04-10 23:30:00
阅读次数:
171
三、附上 office为 2007版本以后的一些 文件限制类型的 属性值 1 2 3 4 5 6 7 8 9 10 四、附上常用的accept 属性值 ...
分类:
Web程序 时间:
2019-04-09 18:25:42
阅读次数:
215
摘要: 本文要实现的内容,使用nodejs 对文件的增删改查,演示的例子 》分离出一个html 文件里面的script 和style 里面的内容,然后单独生成js文件和css 文件。中间处理异步的api 》async/await , Promise 项目托管:[extract js css][1] ...
分类:
Web程序 时间:
2019-04-09 12:21:18
阅读次数:
170
We have a two dimensional matrix where each value is or . A move consists of choosing any row or column, and toggling each value in that row or column ...
分类:
编程语言 时间:
2019-04-09 00:30:26
阅读次数:
226
```python def unzip_file(fname, dirs): import zipfile fz = zipfile.ZipFile(fname, 'r') # for file in fz.namelist(): # print(file) # fz.extract(file, d... ...
分类:
其他好文 时间:
2019-04-08 15:16:49
阅读次数:
167
待计算的wordCount文件放在HDFS上。 wc.txt: 目标:进行WordCount计算,把结果输出到HBase表中 1.先在HBase中创建表wc 2. WCRunner.class 3. Mapper 4. Reducer 5. Eclipse Console输出 SLF4J: Clas ...
分类:
其他好文 时间:
2019-04-07 09:33:44
阅读次数:
162
背景 之前.net core使用quartz.net时,总感觉非常变扭,百度和谷歌了N久都没解决以下问题,造成代码丑陋,非常不优雅: 1.项目启动时,要立刻恢复执行quartz.net中的任务 2.quartz.net中的Job任务无法使用ioc注入,要额外写一套 直到最近看到这篇文章 ".Net ...
分类:
其他好文 时间:
2019-04-06 00:10:29
阅读次数:
155
RememberMeAuthenticationFilter 的作用很简单,就是用于当session 过期后,系统自动通过读取cookie 让系统自动登录。 我们来看看Springsecurity的过滤器链条。 我们发现这个 RememberMeAuthenticationFilter 在 匿名构造 ...
分类:
编程语言 时间:
2019-04-05 19:43:41
阅读次数:
165
1、脚本一 2、脚本二 注释: 罗列日志组时一页最多可以显示50条,虽然一次删不干净,多执行两次就OK了。 ...
分类:
其他好文 时间:
2019-04-04 17:10:10
阅读次数:
185
TEncoding.Default.GetString(zip.FileInfo[0].FileName); ...
分类:
其他好文 时间:
2019-04-02 12:50:13
阅读次数:
250