window.innerHeight //浏览器窗口高度 window.innerWidth window.outerHeight //浏览器窗口外部高度(工具栏,滚动条) window.outerWidth 对于移动设备,window.innerWidth和window.innerHeight保存 ...
分类:
其他好文 时间:
2018-07-14 23:03:36
阅读次数:
197
topic:创建时topic名称 partition:分区编号 offset:表示该parition已经消费了多少条message logSize:表示该partition已经写了多少条message Lag:表示有多少条message没有被消费。 Owner:表示消费者 Created:该part ...
分类:
其他好文 时间:
2018-07-12 20:08:05
阅读次数:
134
1.RecyclerView简单设置: rv是高度解耦,可以为他设置LayoutManger,ItemAnimotor,Adaper,Deliver分割线等. 2.设置条目添加,移除时可以局部刷新,尽可能优化性能: 3.要使用StaggeredGridLayoutManager 1).这里模拟给每个 ...
分类:
Web程序 时间:
2018-07-11 17:11:35
阅读次数:
276
http://python.jobbole.com/84956/ Pillow是Python里的图像处理库(PIL:Python Image Library),提供了了广泛的文件格式支持,强大的图像处理能力,主要包括图像储存、图像显示、格式转换以及基本的图像处理操作等。 1)使用 Image 类 P ...
分类:
编程语言 时间:
2018-07-11 14:37:59
阅读次数:
236
void Update () { float h = Input.GetAxis("Horizontal"); float v = Input.GetAxis("Vertical"); if (Input.GetKey(KeyCode.J)) { transform.Rotate(-Vector3.... ...
分类:
移动开发 时间:
2018-07-10 15:53:53
阅读次数:
259
Asp.Net Core 使用Quartz基于界面画接口管理做定时任务 ...
分类:
Web程序 时间:
2018-07-10 01:14:37
阅读次数:
206
IS 与 OS1. 基本 IO 操作1.1. InputStream 与 OutputStream1.1.1. 输入与输出我们编写的程序除了自身会定义一些数据信息外,经常还会引用外界的数据,或是将自身的数据发送到外界。比如,我们编写的程序想读取一个文本文件,又或者我们想将程序中的某些数据写入到一个文 ...
分类:
其他好文 时间:
2018-07-08 17:14:32
阅读次数:
150
1 //添加一个request字段,customer_id 2 request()->offsetSet('customer_id', $customer->id); 3 dd(request(customer_id)); ...
分类:
其他好文 时间:
2018-07-07 13:53:51
阅读次数:
168
```
ECMA5: function Drag(id){ this.ele = document.getElementById(id); var that = this; this.ele.onmousedown = function(evt){ that.fnDown(evt); } this.... ...
分类:
其他好文 时间:
2018-07-06 22:22:58
阅读次数:
185
1、阻止右键菜单 自定义右键菜单 1、阻止默认右键菜单 2、自定义右键菜单 <1 mousedown button == 2 <2 按下右键 右键菜单显示,并且移动到点击的位置 <3 按下鼠标上除右键的其他键,菜单隐藏 2、阻止默认行为 绑定点击事件,函数中返回值为false; window.con ...
分类:
其他好文 时间:
2018-07-06 21:30:52
阅读次数:
186