js获取参数,在以前我都是用正在去拆分,然后获取,这种方式感觉是最简单的方式1:function QueryString(item){ var sValue=location.search.match(new RegExp("[\?\&]"+item+"=([^\&]*)(\&?)","i")...
分类:
Web程序 时间:
2014-08-31 15:41:41
阅读次数:
222
1、src="js/formValidator.js" 是相对路径src="/HuiLife/js/jquery-2.1.1.min.js"是绝对路径2、window.location.href = 'seller/seller.jsp';是相对路径window.location.href = '/...
分类:
Web程序 时间:
2014-08-30 22:59:50
阅读次数:
240
找到nginx下面的nginx.conf文件一般都是在#vim /usr/local/nginx/conf/nginx.conf 找到此处 如果存在pathinfo.conf 则将includepathinfo.conf;前面的#删除 如果没有则添加 location ~ [^/]\.php(/|....
分类:
Web程序 时间:
2014-08-30 20:18:29
阅读次数:
211
在使用javascript的时候,有时候对于经常使用的方法太熟悉而忽略了他们之间原理的细微差别。举例如下:window.location.href,window.location.replace。这两种方式都可以让页面跳转到一个新的页面,但是其中我就忽略了跳转之后的细节,比如返回的原来的页面。 wi...
分类:
编程语言 时间:
2014-08-30 15:04:29
阅读次数:
184
前提,当前frame无名或动态生成的; var url = eval($("#ifr1").attr("name")+".location.href;"); console.info(url);
分类:
Web程序 时间:
2014-08-29 12:52:47
阅读次数:
171
jquery代码块取页面参数//取页面参数 var PAGE = { get:function(_name) { var str0=location.search; var str0=str0.replace("?",""); ...
分类:
Web程序 时间:
2014-08-28 12:54:39
阅读次数:
152
1.修改项目名称方法:首先修改项目中.project文件的name属性echo1.....................然后在项目部署到tomcat中的时候出现以下错误:An existing resource has been found at location....2.修改.mymetdat...
分类:
其他好文 时间:
2014-08-28 12:46:19
阅读次数:
186
每一行都建一个线段树。。。。
Fast Matrix Operations
There is a matrix containing at most 106 elements divided into r rows and c columns. Each element has a
location (x,y) where 1
1 x1 y1 x2 y2 v
...
分类:
其他好文 时间:
2014-08-27 18:50:58
阅读次数:
199
1 function request(paras){ 2 var url = location.href; 3 var paraString = url.substring(url.indexOf("?")+1,url.length).split("&"); 4 ...
分类:
编程语言 时间:
2014-08-27 16:25:38
阅读次数:
188
知识管理反馈系统中,分析知识检索的办公室(北京上海天津香港纽约东京....苏州)来源,我需要查询哪些办公室次数较多,排出前5个,并计算出剩余所有部门的查询次数之和。数据库是mysql。1 拼出前五个select sum(count) as total,location from tb_person ...
分类:
数据库 时间:
2014-08-27 16:12:37
阅读次数:
368