简单函数CASE [col_name] WHEN [value1] THEN [result1]…ELSE [default] END new_col_name -- 枚举 select t_name, case t_name when '张三' then '严肃' when '李四' then ' ...
分类:
数据库 时间:
2020-08-04 09:54:24
阅读次数:
83
这三个问题简单叙述下,代码以后再补充 递归:在自己的方法体里面调用自己 迭代:例如foreach迭代语句,把自己作为变量一次次变化(只要继承IEnumerable 或.IEnumerable<T> 接口的类,都可以用foreach进行遍历,凡是用for可以遍历的数组,基本上都可以用foreach遍历 ...
分类:
其他好文 时间:
2020-08-03 09:39:27
阅读次数:
64
(function($) { $.fn.extend({ slider: function(options) { var settings = $.extend({ speed: 500 }, options); return this.each(function() { var slidercon ...
分类:
Web程序 时间:
2020-08-03 00:52:52
阅读次数:
375
https://www.cnblogs.com/FlyAway2013/p/11051514.html 从一个OutOfMemoryError 学会了分析Java内存泄漏问题 阅读目录 问题 分析 总结 以前都是好好的,最近出现了 oom。 问题 开始是: java.lang.OutOfMemory ...
分类:
编程语言 时间:
2020-07-31 19:24:28
阅读次数:
104
用的是xlsx包,由于v8默认内存限制是1.4G,当导出的数据太大的时候,内存会炸,由于csv格式的excel文件,本质上就是文本文件,所以在不调大内存上限的情况下,实现思路是分批处理,用流的方式追加到文件,第一批处理有header,后面追加没有header。微软excel能打开最大的行数是1048 ...
分类:
其他好文 时间:
2020-07-31 12:31:12
阅读次数:
83
命令行 Ctrl+Shift+P # 选择 Configure User Snippets # 选择 Vue.json 原始的Vue.json { // Place your snippets for vue here. Each snippet is defined under a snippet ...
分类:
其他好文 时间:
2020-07-30 01:09:52
阅读次数:
97
Task Scheduler (M) 题目 You are given a char array representing tasks CPU need to do. It contains capital letters A to Z where each letter represents a ...
分类:
其他好文 时间:
2020-07-29 10:27:27
阅读次数:
69
e.subject.part.findLinksInto().each(function (node) { console.log(node.data); that.myDiagram.model.setDataProperty(node.data, "prevSeqId", 1); }); ...
分类:
Web程序 时间:
2020-07-28 22:07:16
阅读次数:
112
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
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha ...
分类:
其他好文 时间:
2020-07-28 14:04:15
阅读次数:
77