解决My97DatePicker 跳转问题

来源:互联网 发布:三峡大学网络选修课 编辑:程序博客网 时间:2024/06/11 18:42

 转载博文地址:http://blog.163.com/eric_ssw/blog/static/1640024312010412112948779/

修改My97DatePicker/calendar.js文件,
在function My97DatePicker()方法中
if(navigator.product!='Gecko'){
if(location.href.substring(location.href.length-3).toLowerCase()=='#97'){location.replace(location.href.substring(0,location.href.length-3));
return;}
else{location.replace(location.href+"#97");}
history.go(
-1);}

 

history.go(-1);
有这么一个操作,虽然不知道为什么要这么做,但是删掉这个就没有问题了,已经测试过了,我的网站也有这个问题,今天搞了一上午终于问题解决了,但是没有仔细看代码,不知道为什么要有这部分操作...

原创粉丝点击