原题链接在这里:https://leetcode.com/problems/insert-delete-getrandom-o1/?tab=Description 题目: Design a data structure that supports all following operations i ...
分类:
其他好文 时间:
2017-02-24 19:25:45
阅读次数:
244
https://github.com/Netflix/Hystrix/wiki/How-it-Works Contents Flow Chart The following diagram shows what happens when you make a request to a service ...
分类:
其他好文 时间:
2017-02-23 15:45:29
阅读次数:
850
转自:http://www.0791quanquan.com/news_keji/topic_816453/ 探索一:正负数问题 拿tinyint字段来举例,unsigned后,字段的取值范围是0-255,而signed的范围是-128 - 127。 那么如果我们在明确不需要负值存在的情况下,通常是 ...
分类:
数据库 时间:
2017-02-21 19:12:58
阅读次数:
268
function All(){ var checkeds = document.getElementsByName("id[]"); for(i = 0; i < checkeds.length; i++){ checkeds[i].checked = true; } } function anti ...
分类:
其他好文 时间:
2017-02-20 12:37:52
阅读次数:
160
WRONGTYPE Operation against a key holding the wrong kind of value github:https://github.com/antirez/redis/issues/2864 原因为redis存在一个同key但是类型不同的数据,在插入新类型 ...
分类:
其他好文 时间:
2017-02-19 17:04:14
阅读次数:
309
栅格系统 --> =768px min-width 750px平板 col-sm >=992px min-width 970px中等屏幕 col-md >=1200px min-width 1170px大屏幕 col-lg --> ... ...
分类:
其他好文 时间:
2017-02-12 16:54:40
阅读次数:
132
先上几张效果图: 如果你需要的也是这种效果,那你就来对地方了!目前,我们这个树形菜单展现出来的功能如下:1、可以动态配置数据源;2、点击每个元素的上下文菜单按钮(也就是图中的三角形按钮)...
分类:
编程语言 时间:
2017-02-08 16:14:14
阅读次数:
538
前言项目中有使用到水印效果,如下图所示。在实现过程中,最终选用ItemDecoration来实现,其中有两大步骤:自定义Drawable来完成水印图片、使用ItemDecoration来布局水印。De...
分类:
其他好文 时间:
2017-02-05 13:07:03
阅读次数:
203
实现的业务逻辑是这样的:通过http请求,返回一个json格式的数据,然后将json数据转化为java对象返回给调用方。Http采用OkHttp库,json转化采用jackson库。一.简介1)okhttpclientOkHttpClient官网: http://square.github.io/o ...
分类:
编程语言 时间:
2017-02-05 13:03:25
阅读次数:
744
html代码: <div class="car-top"> <span class="quan yuan"><img src="~/Content/images/green-dui.png"></span><span>全选</span></div>@foreach (var item in Mode ...
分类:
其他好文 时间:
2017-02-05 12:28:47
阅读次数:
183