1 public class Main extends Activity implements OnClickListener { 2 private LocationManager locationManager; 3 private Location location; ...
分类:
其他好文 时间:
2014-09-21 19:05:41
阅读次数:
275
查看Web App libraries/某jar包源码,选择jar包,右击properties/java Source Attachment... External location选择路径:在已down好Struts2源码src中:如:struts2-core-2.1.6.jar 源码路径:src...
分类:
系统相关 时间:
2014-09-20 22:47:49
阅读次数:
243
1. document.write( " "); 输出语句2.JS中的注释为//3.传统的HTML文档顺序是:document- >html- >(head,body)4.一个浏览器窗口中的DOM顺序是:window- >(navigator,screen,history,location,do.....
分类:
编程语言 时间:
2014-09-20 22:46:19
阅读次数:
242
尽 管是上面讲到的《JavaScript高级程序设计》(第二版)中提到,BOM中的location.path/query…… (window.location)在通过JavaScript更改以后,浏览器都会通过刷新来到达你更改后的URL(location的意思就是位 置。。)而在JavaScript...
有空就要慢慢练起~~~~脑袋动起来是很快乐的事儿。。。。:)《易学PYTHON》演练一遍。from random import choicecave_numbers = range(1,21)wumpus_location = choice(cave_numbers)player_location ...
分类:
其他好文 时间:
2014-09-20 15:15:27
阅读次数:
182
C#重启窗体代码 System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location); notifyIcon1.Visible = false;...
分类:
其他好文 时间:
2014-09-20 14:04:17
阅读次数:
161
nginx简介及特性1.)nginx是一个高性能的web服务器和反向代理服务器,也是一个邮件代理服务器。具有高并发,开销小的特性。性能稳定,采用异步I/O处理机制。配置简洁。2.)nginx特性:基本功能:静态资源的web服务器,能缓存打开的文件描述符反向代理服务器,缓存、负载均衡支..
分类:
其他好文 时间:
2014-09-20 10:10:48
阅读次数:
222
实验目的:利用keepalived实现高可用反向代理的nginx。以及双主模型的ipvs实验环境:node1:在nginx做代理时做反向代理节点,在keepalived实现LVS时做Director。VIP1:172.16.18.22VIP2:172.16.18.23node2:在nginx做代理时做反向代理节点,在keepalived实现LVS时做Director。V..
分类:
其他好文 时间:
2014-09-20 02:29:07
阅读次数:
402
写在前面:如果此文有幸被某位朋友看见并发现有错的地方,希望批评指正。如有不明白的地方,愿可一起探讨。案例拓扑图安装keepalived和nginx安装keepalived#yum-yinstallkeepalived创建nginx用户组及nginx用户#groupadd-rnginx
#useradd-gnginx-rnginx编译安装nginx-1.4.7#tarx..
分类:
其他好文 时间:
2014-09-19 19:42:26
阅读次数:
503
☆如果是本页显示可以直接用location,方法如下: ①onclick="javascript:window.location.href='URL'" ②onclick="location='URL'" ③onclick="window.location.href='URL?id=11'"☆...
分类:
其他好文 时间:
2014-09-19 18:53:05
阅读次数:
160