对于前端分页,不懂的人也许会觉得是个笑话,分页不都是后端的事情吗?的确不得不承认,处理逻辑性的话,还是后端更加友好,但前端分页,也有他友好的一面,比如:服务器压力请求少,换页时用户体验好。 ...
分类:
其他好文 时间:
2018-01-23 17:16:13
阅读次数:
179
最近做到好多概率,组合数,全排列的题目,本咸鱼不会啊,我概率论都挂科了。。。 这个题学到了一个康托展开,有点用,瞎写一下。。。 康托展开: 适用对象:没有重复元素的全排列。 把一个整数X展开成如下形式: X=a[n]*(n-1)!+a[n-1]*(n-2)!+...+a[i]*(i-1)!+...+ ...
分类:
其他好文 时间:
2018-01-22 16:05:45
阅读次数:
282
Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be any binary tree? Would your previous solution sti ...
分类:
其他好文 时间:
2018-01-22 13:08:01
阅读次数:
118
Given a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates. For example, ret ...
分类:
其他好文 时间:
2018-01-20 17:55:15
阅读次数:
137
一,js获取元素(父节点,子节点,兄弟节点) vartest=document.getElementById("test"); varparent=test.parentNode;//父节点 varchils=test.childNodes;//全部子节点 varfirst=test.firstChild;//第一个子节点 varlast=test.lastChile
分类:
Web程序 时间:
2018-01-17 11:27:10
阅读次数:
163
TL;DR: do not enable net.ipv4.tcp_tw_recycle. UPDATED (2017.09): net.ipv4.tcp_tw_recycle has been removed from Linux?4.12. The Linux kernel documentat ...
分类:
其他好文 时间:
2018-01-11 16:11:10
阅读次数:
287
其实关于mysql的事务(原声mysql语句),我在我的博客里面有提到(mysql的文章分类下) 今天看下基于laravel框架ORM的处理 准备: 表必须是InnoDB引擎 注意:如果id是自增的话,mysql的primary key是在内存中维护的,事务回滚是不会回退id,所以中间会出现断层 转 ...
分类:
数据库 时间:
2018-01-10 23:50:27
阅读次数:
249
DOM介绍:文档对象模型 为了方便javascript语言通过dom操作html比较方便; HTML中节点分类: 1.文档节点(document) 2.元素节点 3.文本节点 4.属性节点 5.注释节点 节点的选择 1.document.getElementById(id属性值); 2.docume ...
分类:
Web程序 时间:
2018-01-07 20:22:48
阅读次数:
182
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array whic ...
分类:
其他好文 时间:
2018-01-06 23:28:39
阅读次数:
344
StatefulSets StatefulSet is the workload API object used to manage stateful applications. Note: StatefulSets are stable (GA) in 1.9. Manages the deplo ...
分类:
Web程序 时间:
2018-01-04 00:33:35
阅读次数:
217