从一个页面跳转到另外一个页面传参,我们用jqure得到参数需要两部分:处理浏览器地址栏参数的方法:function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r =...
分类:
其他好文 时间:
2014-12-13 13:21:41
阅读次数:
122
Filter控制器jsp页面代码 user: pass: 注册解决乱码的问题:POST 请求方法FilterHttpServletRequestreq=(HttpServletRequest)request;StringServerpath=req.getServletPath();if(Se...
分类:
其他好文 时间:
2014-12-11 22:08:28
阅读次数:
133
介绍几种asp.net界面跳转的方法。(1)Response.Redirect("http://www.baidu.com",false);(2)Server.Transfer("webform2.aspx");(3)Server.Execute("Default5.aspx?address=beijing);(4)Response.Write("<scriptlanguage=‘javascript‘>window.open(‘aaa.aspx‘);</scri..
分类:
Web程序 时间:
2014-12-09 15:51:09
阅读次数:
184
之前在网上iOS的页面跳转大多都是按回以前的那种xib的形式,但鄙人是使用storyboard的。这篇就只介绍利用storyboard进行页面跳转与传值。新建页面iOS的程序也是使用了MVC的思想,页面文件与代码文件是分离的,这点与Android的类似。在使用storyboard的方式中,新建页面只...
分类:
移动开发 时间:
2014-12-09 12:02:16
阅读次数:
250
☆如果是本页显示可以直接用location,方法如下: ①onclick="javascript:window.location.href=‘URL‘" ②onclick="location=‘URL‘" ③onclick="window.location.href=‘URL?id=11‘" ☆如果页面中有fra...
分类:
Web程序 时间:
2014-12-08 19:55:02
阅读次数:
183
需求:修改配置文件进行跳转:server{
listen80;
server_nameshadouyou.comwww.shadouyou.com;
if($host=‘shadouyou.com‘){
rewrite^/(.*)$http://www.shadouyou.com/$1permanent;
}
root/Disk/var/www/index;
include/etc/nginx/conf.d/shadouyou-SEO;
location/{
indexindex...
分类:
其他好文 时间:
2014-12-08 15:52:28
阅读次数:
135
近期学习了SSH2(Struts2+Spring+Hibernate)的整合后,开始尝试的写一个登陆界面,结果发现:若是单单使用struts2来进行页面跳转的话页面的效果不怎么样,同时也无法进行局部刷新(即异步提交验证)。于是,我开始在网上搜索解决的办法,有些说通过一个隐藏的iframe来达到效果..
分类:
Web程序 时间:
2014-12-07 06:42:24
阅读次数:
212
1、在本页中跳转到指定页面1.window.location.href方式 2.window.navigate方式跳转 3.window.loction.replace方式实现页面跳转,注意跟第一种方式的区别有3个jsp页面(1.aspx, 2.aspx, 3.aspx),进系统默认的是1.aspx...
分类:
Web程序 时间:
2014-12-06 00:02:47
阅读次数:
536
pageload事件用法:当本页面需要跳转到其他外部页面时,可以在本页面用pageload事件,在目标页面不能用pageload事件,比如当a.html页面跳转到b.html,可以在a页面这样用$(document).on('pageload',fn),可以在a页面的pageload事件处理函数fn...
分类:
其他好文 时间:
2014-12-03 18:54:30
阅读次数:
173