Javascript: IE中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentElement.clientWidth ==> 可见区域宽度document.d ...
分类:
编程语言 时间:
2016-11-05 02:38:40
阅读次数:
126
function fun(){ var wWidth = null, wHeight = null; if(window.innerHeight && window.innerWidth){ wHeight = window.innerHeight; wWidth = window.innerWid ...
分类:
其他好文 时间:
2016-11-04 20:55:56
阅读次数:
161
代码: 输出: 备注: 请注意每两行输出之间的时间间隔 ...
分类:
其他好文 时间:
2016-11-03 23:22:38
阅读次数:
383
1、添加:①var a=document.createElement(“a”);②设置关键属性;③将元素添加到DOM树:a、parent.appendChild(a);b、parent.insertBefore(a,old);c、parent.replaceChlid(a,old); 2、优化:尽量 ...
分类:
其他好文 时间:
2016-11-02 00:39:56
阅读次数:
221
Javascript: alert(document.body.clientWidth); //网页可见区域宽(body) alert(document.body.clientHeight); //网页可见区域高(body) alert(document.body.offsetWidth); //网 ...
分类:
编程语言 时间:
2016-10-27 12:30:02
阅读次数:
128
在JavaScript中可以使用window和self标志符来引用当前的浏览器窗口。 每个打开的窗口定义一个window对象,如果文档包含框架(frame 或 iframe 标签),浏览 器会为 HTML 文档创建一个 window 对象,并为每个框架创建一个额外的 window 对象。 可以使用t ...
分类:
编程语言 时间:
2016-10-27 01:23:07
阅读次数:
241
在微信公众号上,发现一个自学android的一个文章,觉得不错。对其进行小小总结,整理给大家。 1. 基础UI学习 Button/TextView/EditText/CheckBox/ImageView/GirdView等,在activityMain.xml里设置,在屏幕上占一块地方。 可以设置这些 ...
分类:
移动开发 时间:
2016-10-26 20:24:57
阅读次数:
253
官方说明:http://packages.ntop.org/ http://packages.ntop.org/centos-stable/ http://packages.ntop.org/centos/ 参考:http://shaurong.blogspot.com/2013/11/ntopng ...
分类:
其他好文 时间:
2016-10-05 13:04:14
阅读次数:
141
作为刚开始学习linux的菜鸟来说,边整合ntop边学习还是不错的,就是花了很长的时间。采用的linux系统是来自于www.cactifans.org的cactifans。非常感谢站主整合的系统,省了很多的功夫。先用yum下载所要依赖的包,因为对于这些不是很懂,所以只要是需要的就都下载了,以免出现各..
分类:
其他好文 时间:
2016-08-18 21:41:45
阅读次数:
183
套接字结构一般从内核到进程.从进程到内核,其中从内核到进程是值-结果参数的例子地址转换函数推荐使用inet_ntop,inet_pton适用于ipv4跟ipv6套接字地址结构struct sockaddr_in{ uint8_t sin_len;//长度 posix规范不需要这个sa_family_... ...
分类:
其他好文 时间:
2016-08-10 06:26:49
阅读次数:
229